aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
AgeCommit message (Collapse)Author
2010-10-20SCUMM: Have o6_getRandomNumber() use the absolute value of the argumentMatthew Hoops
The Backyard Baseball series calls the function with negative numbers, but expects a positive result. The games are now actually playable. Thanks to Kirben for assistance in tracking this bug down. svn-id: r53630
2010-10-19SCUMM/FM-TOWNS JAPANESE: minor fix in last commitFlorian Kagerer
svn-id: r53617
2010-10-19SCUMM/FM-TOWNS JAPANESE: implement flipped textFlorian Kagerer
(used in the MI1 circus scene after Guybrush gets shot out of the cannon) svn-id: r53616
2010-10-18SCUMM/FM-TOWNS JAPANESE: fix font spacing issuesFlorian Kagerer
(improves MI1 intro) svn-id: r53597
2010-10-18SCUMM: Silence MSVC 2010 code analysis warningMax Horn
svn-id: r53582
2010-10-18SCUMM: INSANE: fix a long standing bug discovered by static code analysisEugene Sandulenko
svn-id: r53581
2010-10-18SCUMM: Fix out of bound access (discovered by Code Analysis in MS VS2010; ↵Max Horn
thanks to aquadran for helping verify the fix) svn-id: r53575
2010-10-18SCUMM: Simplify SO_LOAD_STRING codeMax Horn
svn-id: r53574
2010-10-18SCUMM: Add paranoia checkMax Horn
svn-id: r53573
2010-10-18SCUMM: Fix potential bug in ScummEngine::resStrLen.Max Horn
In particular, it might happen that ScummEngine::resStrLen is called while the _scriptPointer is stale. In that case, it would be working with the stale pointer. If the code calling it then uses fetchScript*() methods to read the string whose length was just computed, then it would read potentially *different* data (e.g. copyScriptString or loadPtrToResource could have been affected). I am not sure if this actually could have caused bugs somewhere; it might even be provable that a script relocation cannot happen in all places that invoke resStrLen. But for now it's much easier to make the code safe than to verify that theory ;). Also simplified some related code. svn-id: r53572
2010-10-18SCUMM: Move common code from ScummEngine::fetchScript* to new method.Max Horn
The new method is called refreshScriptPointer(). Also renamed getScriptEntryPoint() to resetScriptPointer() in an attempt to highlight both the similarity and difference between the two. svn-id: r53571
2010-10-18SCUMM: Fix parts of bug #3087898 (SCUMM: Code analysis warnings)Max Horn
svn-id: r53567
2010-10-18SCUMM: Check the sound channel is valid, before checking the sound channel.Travis Howell
svn-id: r53562
2010-10-18SCUMM: Check the sound channel is valid, before checking the sound channel.Travis Howell
svn-id: r53561
2010-10-18SCUMM: Correct incorrect demo entry for Backyard Football 2002.Travis Howell
svn-id: r53560
2010-10-17SCUMM/FM-TOWNS: more improvements to japanese font drawingFlorian Kagerer
(MI1 intro is still not right) svn-id: r53558
2010-10-17SCUMM: Fix Macintosh demo of Putt-Putt Joins the Parade.Travis Howell
svn-id: r53557
2010-10-17SCUMM/FM-TOWNS: more improvements to japanese font drawingFlorian Kagerer
- made use of LordHotos graphics/sjis code to reduce code duplication - japanese mode for version 3 and 5 works fine now with few exceptions (some line spacing glitches in MI1 intro etc.) svn-id: r53554
2010-10-17SCUMM: Fix bug #2952298 - HE (16Bit): Inventory items (Cursors) have wrong ↵Travis Howell
color. svn-id: r53552
2010-10-15SCUMM/FM-TOWNS: fix regression in non Japanese SCUMM 3 gamesFlorian Kagerer
svn-id: r53523
2010-10-15SCUMM/FM-TOWNS: fix display of dialogue options in Indy 4 JapaneseFlorian Kagerer
svn-id: r53519
2010-10-15SCUMM/FM-TOWNS: fix up/down inventory arrows in Indy 4 JapaneseFlorian Kagerer
svn-id: r53518
2010-10-15SCUMM/FM-TOWNS: improve japanese font drawing in SCUMM 3 gamesFlorian Kagerer
svn-id: r53510
2010-10-15ENGINES: Enhance namespace comments a bitMax Horn
svn-id: r53484
2010-10-15Reverted revision 53456, as requested.Travis Howell
svn-id: r53483
2010-10-14SCUMM: Fix bug #2952298 with 16-bit HE cursors on AmigaEugene Sandulenko
Bug #2952298: "HE (16Bit): Inventory items (Cursors) have wrong color" This appeared to be generic BE bug. Thanks to jvprat for nailing it down and providing the patch. svn-id: r53456
2010-10-13OPENGL: Merged from trunk, from rev 52105 to 53396.Johannes Schickel
This includes an rather hacky attempt to merge all the recent gp2x backend changes into the branch. I suppose the gp2x backend and probably all new backends, i.e. gph, dingux etc., might not compile anymore. Since I have no way of testing those it would be nice if porters could look into getting those up to speed in this branch. svn-id: r53399
2010-10-12SCUMM/FM-TOWNS: start fixing japanese font drawingFlorian Kagerer
svn-id: r53196
2010-10-10LOOM PC-Engine: fix mouse cursorFlorian Kagerer
svn-id: r53117
2010-10-10LOOM PC-Engine: fix regressionFlorian Kagerer
svn-id: r53113
2010-10-09SCUMM/FM-TOWNS: minor fix for sfx codeFlorian Kagerer
svn-id: r53103
2010-10-09SCUMM/FM-TOWNS: cleanup sfx codeFlorian Kagerer
svn-id: r53095
2010-10-08SCUMM/FM-TOWNS: fixed threading issue in sfx codeFlorian Kagerer
svn-id: r53074
2010-10-08SCUMM/FM-TOWNS: fixed possible invalid mem access in sfx codeFlorian Kagerer
svn-id: r53073
2010-10-07SCUMM/FM-TOWNS: minor change in sfx codeFlorian Kagerer
svn-id: r53061
2010-10-07SCUMM: Silenced signed/unsigned warnings, removed unused variableFilippos Karapetis
svn-id: r53055
2010-10-07SCUMM/FM-TOWNS: cleanupFlorian Kagerer
svn-id: r53053
2010-10-07SCUMM/FM-TOWNS: improved sfx support for indy4 and monkey2Florian Kagerer
svn-id: r53052
2010-10-05SCUMM/FM-TOWNS: disable new graphics code in DS portFlorian Kagerer
svn-id: r53033
2010-10-04SCUMM/FM-TOWNS: cleanupFlorian Kagerer
svn-id: r53016
2010-10-03SCUMM/FM-TOWNS: cleanupFlorian Kagerer
svn-id: r53000
2010-10-03SCUMM/FM-TOWNS: fix mouse cursor colorsFlorian Kagerer
svn-id: r52999
2010-10-03SCUMM/FM-TOWNS: improve merging of graphics layersFlorian Kagerer
svn-id: r52995
2010-10-03SCUMM/FM-TOWNS: fix drawBox()Florian Kagerer
svn-id: r52991
2010-10-02INDY3/FM-TOWNS: fix intro graphics bugFlorian Kagerer
svn-id: r52987
2010-10-02SCUMM: update scumm-md5.txtFlorian Kagerer
svn-id: r52981
2010-10-02SCUMM/FM-Towns: limit SCUMM 5 games to 16 bit graphics modeFlorian Kagerer
8 bit mode makes no sense for these games since colors will be too messed up. SCUMM 3 games (Indy 3, Loom, Zak) are still supported in 8bit mode. svn-id: r52977
2010-10-01SCUMM/FM-TOWNS: fix palette and other graphics issuesFlorian Kagerer
This commit should fix at least the following bugs/feature requests: #1032859, #1252088, #1055391, #1315968, #1315938, #1742106, #812891. The FM-Towns version of Scumm games use a mixed graphics mode with 2 layers (one with 32767 colors and one with 16 colors). Among other things I have added a screen output class which emulates this dual layer approach which allows specific hardware effects like enabling and disabling layers (e.g. in the voodoo priestess scene in MI1). Old savegames (saved before this update) will load, but you’ll encounter palette glitches in the verb/inventory screen, since the 16 color palette for layer 2 is not contained in your savegame. This will be true at least for version 5 games. Certain scene change actions (which require the verb/inventory part to be redrawn) might correct this (e.g. try looking at the treasure map in MI1 and closing it). Version 3 games should be okay, since they use a static text palette which is never changed and which will be reset after loading a savegame. This update requires a USE_RGB_COLORS setting for proper operation. 8 bit users will get a warning that they’ll have to expect palette glitches . Apart from that the engine in 8 bit mode should not only still work okay, but also benefit from some of the other (non palette related) improvements (e.g. bug #1032859 should be fixed even in 8 bit mode). Japanese font drawing hasn’t been improved much yet. This will be a separate task. svn-id: r52966
2010-09-25SCUMM: Fix bug #3052804 by reverting NES-specific screen width hackEugene Sandulenko
svn-id: r52891
2010-09-18SCUMM: Remove unused code, which was replaced by ScummEngine_v0::runObject ↵Travis Howell
in revision 42737. svn-id: r52798