aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/various.cpp
AgeCommit message (Collapse)Author
2008-08-14Fix for bugging moving at the bottom of the ocean when trying to free the ↵Kari Salminen
girl from the ropes and swimming to the surface. Some global variables related to mouse position weren't being updated in executePlayerInput, now they are and things seem to work. Also enables moving in the labyrinth arcade sequence at the palace. svn-id: r33872
2008-08-12Implemented Operation Stealth's makeCommandLine.Kari Salminen
svn-id: r33805
2008-08-12Implemented Operation Stealth specific parts of processInventory and added ↵Kari Salminen
another mouse button waiting loop into the function's end (It's in both Future Wars and Operation Stealth). Fixes inventory showing in Operation Stealth. svn-id: r33795
2008-08-12Changed commandBuffer from a char[80] to Common::String and made ↵Kari Salminen
FWRenderer::setCommand use a Common::String. Hopefully this might help with the command buffer overflow stuff, although this isn't a fix for the problem behind it, just a bandaid. svn-id: r33793
2008-08-09Converted zoneData and zoneQuery tables from plain array types to ↵Kari Salminen
Common::Array. Should help catch out of bounds access errors that may cause memory corruption. svn-id: r33727
2008-08-09Converted objectTable from a plain array to a Common::Array. Should help to ↵Kari Salminen
catch out of bounds access errors that may cause memory corruption. svn-id: r33725
2008-08-08Added basic moving using keyboard (Only works in Operation Stealth at the ↵Kari Salminen
moment): - Should make it possible to complete the first arcade sequence legitimately Renamed input variables (Their names were mixed up between Future Wars and Operation Stealth): - Future Wars's inputVar1 -> egoMovedWithKeyboard - Future Wars's inputVar2 -> xMoveKeyb - Future Wars's inputVar3 -> yMoveKeyb - Operation Stealth's inputVar0 -> xMoveKeyb - Operation Stealth's inputVar1 -> yMoveKeyb svn-id: r33698
2008-08-07Fix for popup boxes sometimes blocking animation when they shouldn't in ↵Kari Salminen
Operation Stealth: - Made waitForPlayerClick updating more like in the original. - Moved removeMessages to after the frame drawing in main loop hoping to be more like the original. - Added an additional test to Operation Stealth's implementation of overlay type 2 drawing. - Added an additional parameter incrementing and testing to Operation Stealth's removeMessages. Hopefully this won't cause any regressions in Future Wars! svn-id: r33686
2008-08-05Fix prompt updating regression introduced in r32257:Kari Salminen
Previously prompt didn't get updated all the time, like e.g. when selecting EXAMINE and moving the cursor over to DOOR and then moving the cursor to a place where there was no selectable object. The prompt would've still shown "EXAMINE DOOR", now it shows just "EXAMINE" which is correct AFAIK. svn-id: r33637
2008-08-04Fix for misplaced objects in mouse object selection (Operation Stealth ↵Kari Salminen
specific). - Implemented Operation Stealth specific part of getObjectUnderCursor which handles negative frame values. - Fixed a test case (Should test for ydif <= 0 although tested for ydif < 0). - Made part-value be anded with 0x0F in a test case to comply with disassembly. - Added comment about a test case which isn't present in the disassembly. Removing it makes things crash sometimes so letting it be. svn-id: r33620
2008-07-30Debug printing a couple more relevant variables in addAni.Kari Salminen
svn-id: r33446
2008-07-30Added some debug aids related to addAni and the processSeqList crashing.Kari Salminen
svn-id: r33444
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-29Added a debug message to loadTempSaveOS's to check whether we loaded the ↵Kari Salminen
whole savefile. Made objectStruct's clearing also clear x and y member variables in resetEngine. svn-id: r33407
2008-07-29Rearranged parts of the Operation Stealth savegame loading routine.Kari Salminen
- Emulating the Future Wars savegame loading routine and hoping for the best. - Fixes an array out of bounds access when loading the global scripts. Now the loading crashes in the mainloop in processSeqList! But at least we got a bit farther this time. More fixing to come... svn-id: r33404
2008-07-28Fixing 'warning: comparison of unsigned expression < 0 is always false'Max Horn
svn-id: r33383
2008-07-28Added loading of temporary Operation Stealth savegames. Needs testing!Kari Salminen
- Music related settings and adBgVar0 & adBgVar1 aren't loaded currently. Modified resetEngine to also reset more of the Operation Stealth specific variables. Added getter for background scrolling value. Changed additional background indices 1 & 2 from byte to uint16. Made savegame loading functions return !in.ioFailed() as return value instead of true as previously. svn-id: r33379
2008-07-28Added remaining load functions needed for the Operation Stealth savegame ↵Kari Salminen
format loading (loadSeqList and loadZoneQuery). Not used yet. svn-id: r33367
2008-07-28Cut Future Wars savegame loading routine into parts that can be reused when ↵Kari Salminen
loading the Operation Stealth savegame format. svn-id: r33366
2008-07-28Now detects temporary Operation Stealth savegame format and saves it. No ↵Kari Salminen
loading yet. svn-id: r33365
2008-07-28Made the savegame loading routine choose between loading a Future Wars or an ↵Kari Salminen
Operation Stealth savegame format. Added a stub for loading the Operation Stealth's temporary savegame format (Not yet implemented). Made mouse cursor change to a disk icon when loading a savegame and back to normal after its done. svn-id: r33362
2008-07-27Added a preliminary saving routine for Operation Stealth (Disabled by ↵Kari Salminen
default, needs more work still. WIP!). Added backgrounds' name saving (8 names in Operation Stealth instead of just 1 like in Future Wars). Added 256 color palette saving and restoring (One of the palettes isn't properly handled yet though). svn-id: r33349
2008-07-27Clear the confusing usage of NUM_MAX_VAR (It's 255 actually, not 256).Kari Salminen
svn-id: r33339
2008-07-27Cut savegame loading into smaller functional parts (resetEngine, ↵Kari Salminen
loadPlainSave etc). svn-id: r33338
2008-07-22Fix warnings in CINEMax Horn
svn-id: r33202
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-18Added savefile position comments to savegame loading routine (Helpful for ↵Kari Salminen
debugging the formats). svn-id: r33096
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-07-02Fully implemented processSeqListElementKari Salminen
- Added parts that were missing and fixed a couple of errors -- One test was backwards and a global variable was written to when it shouldn't have been Added global variable inputVar0 that's used in processSeqListElement NOTE: inputVar0 isn't updated anywhere yet, so that's a TODO svn-id: r32874
2008-07-01Fixed unitialized variablesMax Horn
svn-id: r32865
2008-06-30Fixed addAni (A test before using resetGfxEntityEntry was incorrect). Also ↵Kari Salminen
added comments and checked that most 8-bit values used in this function are used as signed integers. svn-id: r32850
2008-06-30Implemented resetGfxEntityEntry and made it used where appropriate (The ↵Kari Salminen
function wasn't very easy to reverse engineer so it may have flaws still, but let's hope it doesn't ;-)). svn-id: r32848
2008-06-26Fixed opcode:Kari Salminen
- 0x83: o2_isSeqRunning (Should it be named o2_isSeqNotRunning?) -- Added previously missing test part -- Negated the result (It was backwards before!) svn-id: r32804
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-06-25Implemented opcode:Kari Salminen
- 0x82: o2_modifySeqListElement (Was o2_op82) Seeks a matching element from the seqList and modifies its values. svn-id: r32786
2008-05-24Patch #1969189: "CinE renderer rewrite"Eugene Sandulenko
svn-id: r32257
2008-04-24Fixed regression: CINE games crashed when a message box appeared (patch by ↵Filippos Karapetis
next_ghost) svn-id: r31696
2008-04-21Patch #1941066: "CinE sprite overlay rewrite" courtsey of next_ghostEugene Sandulenko
svn-id: r31651
2008-04-07Patch #1913862: "CinE Script system"Eugene Sandulenko
svn-id: r31444
2008-01-28Fixed the spaces before tabs.Jordi Vilalta Prat
svn-id: r30667
2008-01-01Slightly modified patch #1848173: "ScriptVars class implementation for CinE"Eugene Sandulenko
svn-id: r30125
2007-12-21Slight cleanupFilippos Karapetis
svn-id: r29934
2007-12-14renamed several structures, variables and functionsGregory Montoir
svn-id: r29860
2007-12-14Added a note, switched to CLIP template for clipping, some cleanupFilippos Karapetis
svn-id: r29859
2007-12-13Fixed one more regression from the latest cleanupFilippos Karapetis
svn-id: r29848
2007-12-13Fixed a regression from the latest cleanupFilippos Karapetis
svn-id: r29847
2007-12-13Muting the compiler :PSven Hesse
svn-id: r29846
2007-12-13Cleanup and simplificationFilippos Karapetis
svn-id: r29845
2007-12-13Changed the C style malloc/free to the C++ style new/deleteFilippos Karapetis
svn-id: r29841
2007-12-12Fixed warning about casting away constness.Torbjörn Andersson
svn-id: r29839