Commit Graph

34003 Commits

Author SHA1 Message Date
Filippos Karapetis
fa077237c1 Fixed a crash when starting KQ1SCI
svn-id: r44484
2009-09-30 13:09:18 +00:00
Johannes Schickel
1b94303b78 Update SJIS code to read SJIS.FNT version 2 data (no support for drawing ASCII and half-width katakana glyphs yet).
svn-id: r44483
2009-09-30 13:07:12 +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
Willem Jan Palenstijn
ab403f4845 Check readline+termcap if linking with readline failed
svn-id: r44480
2009-09-30 11:21:09 +00:00
Joost Peters
e29b1758de fix bug #2869491: "PSP make problem after 44348"
svn-id: r44479
2009-09-30 11:11:06 +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
Andre Heider
fa3e257aa2 Removed the svn:executable property on non-executables
svn-id: r44444
2009-09-28 09:16:53 +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
Andre Heider
9c4f4e6775 Fixed whitespace fail
svn-id: r44442
2009-09-28 09:05:29 +00:00
Andre Heider
0dcc75671e Fix WinCE build error
svn-id: r44441
2009-09-28 08:57:44 +00:00
Benjamin Haisch
0335a37b05 Fixed clipping-related bug (bug #2826036)
svn-id: r44439
2009-09-28 07:28:20 +00:00
Kostas Nakos
6ffa6ecccf revert previous fix
svn-id: r44438
2009-09-28 07:25:28 +00:00
Kostas Nakos
a13ba4cee7 overload newer incarnation of setmousecursor
svn-id: r44437
2009-09-28 07:21:56 +00:00
Kostas Nakos
994b74a193 1) fix scaler selection for vga games on vga (or higher) devices. 2) fix a crash during startup
svn-id: r44435
2009-09-28 07:04:29 +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
Max Horn
76132409d6 Removed Mac OS X QuickTime MIDI backend. It breaks on OS X 10.6, and it's not as good as the CoreAudio backend anyway
svn-id: r44428
2009-09-27 22:43:32 +00:00
Max Horn
6ec05c48f9 Fix CoreAudio MIDI backend on Mac OS X 10.6
svn-id: r44427
2009-09-27 22:42:51 +00:00
Max Horn
8f609497ee Backported NDS changes from 1.0.0 branch to trunk
svn-id: r44426
2009-09-27 22:42:21 +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