Commit Graph
86814 Commits
Author SHA1 Message Date
Max Horn 8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Max Horn 25dde91c7c SCI: Some palette code cleanup
svn-id: r44494
2009-09-30 16:06:04 +00:00
Max Horn cc54ad650d Remove trailing whitespaces
svn-id: r44493
2009-09-30 16:04:21 +00:00
Max Horn 27026f6565 SCI: Replace magic '-42' by an enum
svn-id: r44492
2009-09-30 16:00:44 +00:00
Filippos Karapetis c76041d46d Fixed a crash in KQ1SCI, when the user types something wrong - the game tries to open a file with an empty file name, and an odd file mode
svn-id: r44491
2009-09-30 15:43:28 +00:00
Filippos Karapetis 1497f9845a Fixed regression in r44417, found by waltervn. The score in KQ1SCI should be diplayed correctly again
svn-id: r44490
2009-09-30 15:21:44 +00:00
Johannes Schickel 2240886315 Got rid of old workaround, which was only needed because our SJIS font did not feature any ASCII chars.
svn-id: r44489
2009-09-30 14:54:18 +00:00
Johannes Schickel 438244a016 Adapt KYRA engine to use the ASCII and half-width katakana support of the SJIS font. (required for LoL PC98)
svn-id: r44488
2009-09-30 14:53:57 +00:00
Johannes Schickel b8c7237d12 Cleanup: got rid of Screen::ShadeType.
svn-id: r44487
2009-09-30 14:53:34 +00:00
Johannes Schickel 03a26923c9 Implemented support for drawing 8x16 chars from our custom SJIS font.
svn-id: r44486
2009-09-30 14:53:07 +00:00
Nicola Mettifogo 9be8a6e4f6 Simplified inventory handling (too much information hiding will kill you).
svn-id: r44485
2009-09-30 13:41:19 +00:00
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