aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/script.cpp
AgeCommit message (Collapse)Author
2010-07-16Removed unused variable. I believe thread->_instructionOffset serves the sameTorbjörn Andersson
purpose that 'addr' was inteded to. svn-id: r50951
2010-05-16Added automatic detection for the non-interactive ITE demosFilippos Karapetis
svn-id: r49046
2010-02-26Fixed the music in some Mac versions of ITE and disabled some unused code ↵Filippos Karapetis
for the original DOS demo of ITE svn-id: r48139
2009-12-04refactor resource module:Andrew Kurushin
- struct ResourceContext => class ResourceContext - replace "*alloc","free" with array templates - simplify createContexts routines svn-id: r46254
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-04-11SAGA: changed _threadList back to a list of ScriptThread objs, instead of ↵Max Horn
ptrs to instances. svn-id: r39944
2009-04-11Plugged another memory leak introduced with rev #39934Filippos Karapetis
svn-id: r39936
2009-02-20Fixed a nasty regression from the script system rewrite (commit #35670), ↵Filippos Karapetis
which will cause crashes under certain conditions, and probably makes SAGA games non-completable. When a script thread is waiting for another thread, the current instruction offset should not be modified. The thread processing function would incorrectly continue in some special cases, and would incorrectly alter the current instruction offset. This becomes apparent in some special cases only, which made it hard to spot - plus, SAGA games have not been tested for 0.13.0, so there weren't any reports for this. This change SHOULD go to the 0.13.0 branch, but we've already tagged... svn-id: r38581
2009-02-03Removed unused codeFilippos Karapetis
svn-id: r36210
2009-01-02Split the script module into two parts, for SAGA1 and SAGA2 gamesFilippos Karapetis
svn-id: r35689
2009-01-02Wrapped more engine-specific code around appropriate ifdefsFilippos Karapetis
svn-id: r35679
2009-01-02- Split the IHNM script functions into a different fileFilippos Karapetis
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS) svn-id: r35672
2009-01-02Rewrote the SAGA script system to use an opcode table, like in other enginesFilippos Karapetis
svn-id: r35670
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-25SAGA2 HRS resources should be loaded correctly nowFilippos Karapetis
svn-id: r35539
2008-12-25- Implemented the SAGA2 resource loaderFilippos Karapetis
- Some cleanup svn-id: r35536
2008-12-22- Split the SAGA resource manager in 3 different ones, depending on the ↵Filippos Karapetis
resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub - Added detection for the voice file of FTA2 svn-id: r35484
2008-12-21Added some more stubs for FTA2Filippos Karapetis
svn-id: r35475
2008-12-21Cleaned up the mess with game IDs and game types: removed game types, ↵Filippos Karapetis
reduced the game IDs and added game features where necessary svn-id: r35467
2008-06-12SAGA: Fixed memory leaks in the SAGA engineChristopher Page
svn-id: r32673
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2008-01-05Fix to remove a tab character from the GPL headerPaul Gilbert
svn-id: r30238
2007-11-12Added a workaround for a problematic object in Gorrister's chapter (Edna's key)Filippos Karapetis
svn-id: r29486
2007-11-11Don't draw objects with negative x/y values. Now, "ghost" objects are no ↵Filippos Karapetis
longer created in the top left corner of the screen when picked up/used. The creation of such ghost objects is a script bug which exists in the original interpreter of IHNM as well. Also, removed a relevant workaround for the note in the first screen of Gorrister's chapter, as it's no longer needed svn-id: r29477
2007-11-09Added a workaround for a bug in the original game scripts of IHNM with Edna, ↵Filippos Karapetis
when the knife is used with her. Fixes bug #1826871 - "IHNM: Edna's got two hearts but loves to be on the hook" svn-id: r29461
2007-11-01It's now possible to exit the screens with Gorrister's heart in IHNM ↵Filippos Karapetis
normally (i.e by walking to the exit, not using it) - like the original svn-id: r29349
2007-10-27Added a workaround for an incorrect hitzone in IHNM, (Gorrister's chapter). ↵Filippos Karapetis
Now, the graffiti to the left in the toilet screen can be examined correctly. Also, performed some clean-up svn-id: r29264
2007-10-22Added a workaround for a script bug in IHNM, which occurs in the original as ↵Filippos Karapetis
well. An invisible note will no longer be created in the top left corner of the screen, when the note in the first screen of Gorrister's chapter is read svn-id: r29247
2007-09-30IHNM does not have excuse textsFilippos Karapetis
svn-id: r29145
2007-09-23Moved MemoryStreamEndian from Saga to Common.Eugene Sandulenko
svn-id: r29038
2007-09-22Added a workaround for a bug with Gorrister's heart, which exists in the ↵Filippos Karapetis
original game scripts of IHNM svn-id: r29024
2007-09-16Script modules are now unloaded correctly when changing chapters in IHNMFilippos Karapetis
svn-id: r28918
2007-09-15Palette fade in when a cutaway starts in IHNM is working now. Also, the fade ↵Filippos Karapetis
mode is properly set in all cases where palette fadeout is used. Some code formatting svn-id: r28904
2007-09-15The right button verb in IHNM will no longer be invalid for some hitzones ↵Filippos Karapetis
(e.g. "Quit game the door") svn-id: r28903
2007-08-25Added a note on mouse right button action for IHNMFilippos Karapetis
svn-id: r28721
2007-08-17Removed an obsolete TODOFilippos Karapetis
svn-id: r28642
2007-08-01IHNM and ITE: ScummVM will no longer crash when loading games from the ↵Filippos Karapetis
command line svn-id: r28394
2007-06-12Auto-use no-walk hitzones in IHNM, like the original. This fixes the ↵Filippos Karapetis
pathfinding problems in Benny's chapter svn-id: r27370
2007-06-11When using some items in IHNM, it was possible that the verb would ↵Filippos Karapetis
incorrectly change from "use" to "use with" (e.g. the jukebox in the honky-tonk). This has been fixed svn-id: r27356
2007-06-08fix IHNM pathfinding engine. now TED(Chapter 5) interacts with the books ↵Andrew Kurushin
properly svn-id: r27225
2007-06-08IHNM never sets scriptModuleNumber to 0 in Script::doVerb(). Now, all items ↵Filippos Karapetis
will have the correct script assigned to them (e.g. the fruit at the fruit tree screen in Benny's chapter, the icon in the chapel in Ted's chapter etc) svn-id: r27203
2007-06-06Implemented the sfGetMouseClicks and sfResetMouseClicks opcodes and created ↵Filippos Karapetis
the skeleton for sfScriptStartVideo, sfScriptReturnFromVideo and sfScriptEndVideo opcodes svn-id: r27145
2007-06-06Added sanity checks for hitzones in SAGA, after discussing with h00ligan and ↵Filippos Karapetis
sev. Removed a hack for IHNM which is not needed anymore and removed a redundant check for zero object types svn-id: r27140
2007-06-06Fix regression caused by commit #27108Filippos Karapetis
svn-id: r27122
2007-06-05Avoid compiler warnings.Travis Howell
svn-id: r27118
2007-06-05Filtering specific verbs is used in ITE, but not in IHNM. It's now possible ↵Filippos Karapetis
to use the jukebox in the honky-tonk in IHNM svn-id: r27110
2007-06-05Check if a zone type is NULL for both ITE and IHNM, as it's done in the ↵Filippos Karapetis
original. This fixes the crash in IHNM when entering the second floor of the zeppelin and the crash in ITE when interacting with the bowl in the tunnel, outside the prison. Removed the two relevant hacks svn-id: r27108
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-27Made verbs "push" and "swallow" work in IHNM. It's now possible to choose a ↵Filippos Karapetis
monitor with Ted svn-id: r26983