aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/script_fw.cpp
AgeCommit message (Collapse)Author
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-09-20Changed some type names to match our coding guidelines.Johannes Schickel
svn-id: r44224
2009-09-15Fix valgrind warning inside "saturatedAddColor", when using the same palette ↵Johannes Schickel
object as both source and destination. svn-id: r44094
2009-09-03Workaround for bug #2848940 (ScummVM crashes with Future wars): ↵Kari Salminen
getZoneFromPositionRaw accessed data outside its 320x200 buffer because Y values in range 200-232 were given to it. Original doesn't properly handle this either so trying this workaround of returning zero for positions outside the 320x200 buffer. Hopefully nothing else breaks in Future Wars because of this (More testing is direly needed!). svn-id: r43920
2009-07-13Fix for bug #2669415 (FW: half walking speed in a screen).Kari Salminen
svn-id: r42439
2009-05-11Fix bug #2055836: "FW: Music is not restarted when loading a saved game"Eugene Sandulenko
svn-id: r40465
2009-02-15Fixed compilation (along with it const correctness).Johannes Schickel
svn-id: r38287
2009-02-15Quick dirty hack to make the engine run again on PalmOSChris Apers
svn-id: r38278
2009-01-29A ton of code formatting fixes; also fixed warnings about single line loops ↵Max Horn
like 'while(cond);' by inserting newlines svn-id: r36127
2008-10-19Cleanup (Removed an extra 'return 0').Kari Salminen
svn-id: r34826
2008-08-16Workaround for bug #2054882 (FW: Impossible to survive entering monastery ↵Kari Salminen
(regression)): For Future Wars o1_compareGlobalVar now compares global variable 255 to be equal to everything. The scripts probably tested global variable 255 for equality with some value (Maybe 143?) to see whether copy protection was properly passed. svn-id: r33950
2008-08-06Tiny comment update to loadCt-opcodes: Load collision table data.Kari Salminen
svn-id: r33670
2008-08-06Renamed page3Raw to collisionPage so it's more apparent what it does.Kari Salminen
svn-id: r33669
2008-08-06Add 320x200 screen bounds checking to Operation Stealth's checkCollision ↵Kari Salminen
function. Fixes teleporting bug when getting out of the water after first arcade sequence. The player previously got teleported to the beach near the hotel. Now it doesn't happen. The player is still caught motionless and can't move after this fix though... svn-id: r33668
2008-07-29Changed class File (and derived classes) to only support read-only access; ↵Max Horn
added a new class DumpFile for writing svn-id: r33412
2008-07-29Added purgeSeqList function (Used in mainloop now). Let's see if this helps ↵Kari Salminen
any... Renamed functions: * addScriptToList0 -> addScriptToGlobalScripts * executeList0 -> executeGlobalScripts * executeList1 -> executeObjectScripts * purgeList1 -> purgeObjectScripts (Also added a clarifying TODO to this function) * purgeList0 -> purgeGlobalScripts (Also added a clarifying TODO to this function) svn-id: r33409
2008-07-28Fixed crash when running Operation Stealth introduced in r33339 (There are ↵Kari Salminen
actually 256 global variables although only 255 of them are saved and loaded from savegames. The last one is VAR_BYPASS_PROTECTION and it is written to in the mainLoop so that's why there was a crash). svn-id: r33380
2008-07-23Renamed opcodes 0x49 and 0x68:Kari Salminen
- Opcode 0x49: setDefaultMenuColor2 -> setDefaultMenuBgColor - Opcode 0x68: setDefaultMenuColor -> setPlayerCommandPosY svn-id: r33240
2008-07-22Fix for bug #2019355 (FW: broken compatibility with 0.11.1 saves):Kari Salminen
- Changed savegame loading related functions to use SeekableReadStream rather than InSaveFile so MemoryReadStream can be used transparently. - Fixed loadResourcesFromSave to load multiframe animations correctly and to load 0.11.0/0.11.1 Future Wars savegames which used a slightly different format. - Added a savegame format detector that tries to detect between the old Future Wars savegame format, the new one and a broken revision of the new one. - Changed makeLoad to first load the savegame fully into memory and only then handle it (If the savegame's packed then it's unpacked first). If the packed savegame can't tell its unpacked size (i.e. it's using zlib format) then we'll try to load up to 256kB of the savegame data. Thanks to wjp for his help with nailing this release critical bug. svn-id: r33192
2008-07-14Fix for bug #2016647 (FW: crash with italian amiga version).Kari Salminen
- Consists of a workaround for a script bug that used local variable 251 when it should've used global variable 251. - Also added a fix for a crash when failing copy protection in Amiga or Atari ST versions of Future Wars. NOTE: That any of the Amiga or Atari ST versions of Future Wars haven't crashed right in the beginning before seems like plain luck because accessing local variable 251 is out of bounds! svn-id: r33068
2008-06-30Removed TODO from checkCollision: Updating zoneQuery each time ↵Kari Salminen
checkCollision is called seems to be fine. svn-id: r32852
2008-06-26Comments update.Kari Salminen
svn-id: r32801
2008-06-25Fix for GCC warning (Warned about testing x >= 0 when x is unsigned and ↵Kari Salminen
therefore the test is always true). svn-id: r32791
2008-06-25Implemented support for zoneQuery (Operation Stealth specific).Kari Salminen
Fixed opcodes (related to zoneQuery): - 0x08: o1_checkCollision - 0x9A: o2_wasZoneChecked NOTE: Savegame support for the zoneQuery data is broken svn-id: r32790
2008-05-30Checked that opcodes 0x71-0x73 really do nothing else but read the ↵Kari Salminen
parameters in PC versions of Future Wars and Operation Stealth. Maybe they're used in the Amiga versions? svn-id: r32396
2008-05-30Implemented opcodes 0x04 (o1_mulObjectParam) and 0x05 (o1_divObjectParam).Kari Salminen
svn-id: r32393
2008-05-24Patch #1969189: "CinE renderer rewrite"Eugene Sandulenko
svn-id: r32257
2008-04-21Patch #1941066: "CinE sprite overlay rewrite" courtsey of next_ghostEugene Sandulenko
svn-id: r31651