Filippos Karapetis
fa077237c1
Fixed a crash when starting KQ1SCI
...
svn-id: r44484
2009-09-30 13:09:18 +00:00
Filippos Karapetis
fd21bb2611
- Moved the list of synonyms and parser nodes inside the vocabulary class
...
- Added a convenience member inside the EngineState struct to access the instance of the Vocabulary class
svn-id: r44481
2009-09-30 12:17:38 +00:00
Johannes Schickel
c9ca057ae2
- Adapt parts of the Draci code to match our code formatting guidelines
...
- Remove use of tabs for formatting, now in nearly all cases tabs are only used for indentation
- Use "uint" instead of "unsigned int" in the whole engine for consistency's sake
- Strip some trailing tabs and leading whitespaces
svn-id: r44478
2009-09-30 10:45:14 +00:00
Filippos Karapetis
4477f41903
Converted _color_equals() into respective equality operators within the gfx_color_t structure
...
svn-id: r44477
2009-09-30 08:23:12 +00:00
Nicola Mettifogo
eb5beef6a1
* Added secondary inventories for BRA.
...
* Added comments where code must be added/updated to support multiple inventories.
svn-id: r44476
2009-09-30 07:47:58 +00:00
Nicola Mettifogo
e660f31ed8
Provide only the data that is strictly needed when creating a new Inventory.
...
svn-id: r44475
2009-09-30 07:09:07 +00:00
Robert Špalek
76a0bcb6c4
Implemented the map room, entered when 'm' is pressed.
...
svn-id: r44474
2009-09-30 04:33:52 +00:00
Willem Jan Palenstijn
77bd8d0bfb
SCI: Add callk stackframe directly in run_vm
...
svn-id: r44473
2009-09-30 00:13:59 +00:00
Arnaud Boutonné
ff70b554ea
Playtoons - implement some functions related to hotspot texts
...
Fascination - initial version of several 'Fascination Window' functions, proper naming of most of fascination OPCODEDRAW and OPCODEGOB functions
svn-id: r44472
2009-09-29 22:43:30 +00:00
Torbjörn Andersson
c857369131
Fixed Valgrind warnings about invalid memory access. Hopefully without breaking
...
anything, but modifying a data structure while traversing it can be a bit
tricky...
svn-id: r44469
2009-09-29 19:51:37 +00:00
Arnaud Boutonné
f6aaafae7c
Gob - Silence a Valgrind warning by initializing a variable
...
svn-id: r44467
2009-09-29 16:56:30 +00:00
Filippos Karapetis
6f6b699390
Added a FIXME comment for the removed functionality in the script debugger
...
svn-id: r44466
2009-09-29 15:51:45 +00:00
Johannes Schickel
270104fc70
Remove unused variable.
...
svn-id: r44464
2009-09-29 14:37:09 +00:00
Johannes Schickel
70f7c46f42
Add newline after "Available debug channels" in Cmd_Debug, now all debug channels will be listed in separate lines.
...
svn-id: r44463
2009-09-29 14:36:46 +00:00
Filippos Karapetis
2c2cf614c8
Oops - don't attempt to print the sought kernel function name when its empty
...
svn-id: r44462
2009-09-29 14:28:37 +00:00
Filippos Karapetis
f9296a6445
- Changed the unimplemented debug SCI kernel functions (InspectObj, ShowSends, ShowObjs, ShowFree, StackUsage and Profiler) to be dummy functions - we have our own debugger, and don't use these functions for debugging
...
- Removed the function number parameter from all kernel functions, as it's no longer needed, and removed the FAKE_FUNCT_NR hack
- Removed kUnknown() and kStub()
- Dummy/unknown kernel functions are no longer invoked, and a warning is shown instead, with the paremeters passed to them
Note: there is an evil hack used for debugging scripts in invoke_selector(), which probably no longer works now
svn-id: r44461
2009-09-29 14:24:07 +00:00
Benjamin Haisch
af4c6c5f5b
Fixed bug #2868938
...
svn-id: r44459
2009-09-29 08:18:40 +00:00
Filippos Karapetis
f78428384e
QFG3 clears clones with underbits set, so disable the warning for this behavior
...
svn-id: r44458
2009-09-29 07:40:04 +00:00
Robert Špalek
4be9e6cda0
Rewrite from scratch drawReScaled() and cropping now works well.
...
I left draw() as is for now, although it could also be similarly simplified.
Also, one could easily completely get rid of columnIndices[], but I was too
tired for the time being.
svn-id: r44457
2009-09-29 06:36:39 +00:00
Robert Špalek
00a733f7cf
Clean up and unify positioning dragon's animations
...
svn-id: r44456
2009-09-29 05:54:59 +00:00
Denis Kasak
635769bd5d
draci:
...
* Added const to some methods of Game.
* Removed some code cruft from Game::walkHero() (duplicate calculations and variables).
* Fixed small bug which prevented talking text from being centered above the dragon.
svn-id: r44455
2009-09-29 00:03:09 +00:00
Denis Kasak
137c44013c
draci: Inverted a logical check to make it more obvious.
...
svn-id: r44454
2009-09-28 23:32:16 +00:00
Denis Kasak
0c0135e0ed
draci: Added methods Game::positionAnimAsHero(), Game::getHeroX() and Game::getHeroY() and implemented correct positioning of all dragon animations. Fixed exiting the inventory by right-clicking outside it.
...
svn-id: r44453
2009-09-28 23:10:08 +00:00
Denis Kasak
a8d6e8774c
Made AnimationManager::sortAnimations() do multiple passes, if necessary, and added some animation debug info.
...
svn-id: r44452
2009-09-28 23:02:39 +00:00
Johannes Schickel
95cd669efb
Fix for bug #2868581 "KYRA1: Invisible Brandon".
...
svn-id: r44450
2009-09-28 21:58:48 +00:00
Willem Jan Palenstijn
88a9099949
SCI: Remove unsafe unmarkDeleted function.
...
It did not undo all effects of a script being deleted (specifically its
superclasses remain unlocked), causing an inconsistent
state. Also removed EcoQuest CD hack that worked around a specific
instance of this problem.
svn-id: r44449
2009-09-28 20:21:09 +00:00
Willem Jan Palenstijn
f413356bed
SCI: When merging palettes, map all unused colours to index 0.
...
This fixes the boots/belt of the hero sprite in QfG3 character generation.
svn-id: r44448
2009-09-28 19:39:17 +00:00
Robert Špalek
ccc737a714
Fix a memory leak
...
svn-id: r44447
2009-09-28 11:28:09 +00:00
Paul Gilbert
770cca79d0
Script workaround for partially off-screen text in DW1 GRA
...
svn-id: r44445
2009-09-28 09:56:05 +00:00
Filippos Karapetis
033b587bd2
Added topString to the list of static selectors, for commit #44429
...
svn-id: r44443
2009-09-28 09:09:15 +00:00
Benjamin Haisch
0335a37b05
Fixed clipping-related bug (bug #2826036 )
...
svn-id: r44439
2009-09-28 07:28:20 +00:00
Robert Špalek
359d374dc6
Added const's to getPalette() and several uses of getObject()
...
svn-id: r44434
2009-09-28 04:09:03 +00:00
Robert Špalek
8a78e96838
Make getFile() return a const pointer and clean-up all uses of it.
...
svn-id: r44433
2009-09-28 03:51:23 +00:00
Robert Špalek
7ef17ba73e
get rid of static Common::String's
...
svn-id: r44432
2009-09-28 03:06:43 +00:00
Robert Špalek
42e3c63b11
get rid of static Common::String's
...
svn-id: r44431
2009-09-28 02:54:38 +00:00
Robert Špalek
d0db596311
Fix rounding coordinates at the edge of the screen.
...
svn-id: r44430
2009-09-27 23:57:39 +00:00
Walter van Niftrik
725377f090
SCI: Fix scrolling in SCI1 list controls.
...
svn-id: r44429
2009-09-27 23:06:39 +00:00
Willem Jan Palenstijn
bec07b42a0
SCI: Remove directory prefix added by QfG3's char import
...
svn-id: r44423
2009-09-27 21:52:14 +00:00
Robert Špalek
a04881072a
Reduce code duplication when cleaning animations
...
svn-id: r44422
2009-09-27 21:25:34 +00:00
Willem Jan Palenstijn
7971d77dd6
SCI: Adjust isValidOffset to match changes from r44396,
...
and make maxSize report the valid space starting at offset.
svn-id: r44421
2009-09-27 21:00:45 +00:00
Robert Špalek
caa3b6707e
Improved the interface of Sprite and Animation concerning relative coordinates and scaling.
...
It is no longer needed to modify the underlying animations when drawing them
on the screen or testing pixels in them. Read access is enough, because
the displacement of the object is passed as a parameter.
Added some more const's where they logically belong.
svn-id: r44419
2009-09-27 20:49:59 +00:00
Max Horn
460d7b269b
Simplify kFormat slightly
...
svn-id: r44417
2009-09-27 19:24:18 +00:00
Max Horn
4edecad9db
TINSEL: cleanup
...
svn-id: r44416
2009-09-27 19:23:44 +00:00
Robert Špalek
cf1031fc63
Fix renumbering of animation indexes
...
svn-id: r44414
2009-09-27 18:51:07 +00:00
Robert Špalek
fc2bb50600
Remove memory leak in animation manager. Get rid of 1 non-const reference parameter.
...
svn-id: r44413
2009-09-27 18:11:06 +00:00
Willem Jan Palenstijn
8c8b996f56
SCI: Add workaround for file mask used by QfG3
...
svn-id: r44411
2009-09-27 16:33:59 +00:00
Willem Jan Palenstijn
33e9b0baf9
SCI: turn assert into warning, as it used in QfG2 char import
...
svn-id: r44400
2009-09-27 14:18:21 +00:00
Vladimir Menshakov
1f8a06a0b8
added missing sound
...
svn-id: r44399
2009-09-27 13:48:51 +00:00
Willem Jan Palenstijn
4d31d0d725
SCI: Fix crash when opening menu's
...
svn-id: r44398
2009-09-27 13:08:56 +00:00
Willem Jan Palenstijn
08e4d96a7d
SCI: clear strcpy's dest string if src is invalid.
...
This fixes moving the plank at the start of KQ6 in Text mode.
svn-id: r44397
2009-09-27 13:05:50 +00:00