aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/various.cpp
AgeCommit message (Collapse)Author
2011-10-09CINE: Remove unused variable 'di'Torbjörn Andersson
As far as I can tell, it converted the selection back to Y coordinate for no apparent reason.
2011-06-30JANITORIAL: Silence a couple of "variable set but not used" warnings.eriktorbjorn
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-02CINE: Replace snprintf() usage with Common::String::format()D G Turner
Safer and less portability issues.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-02-07ALL: Fix whitespaces / indentionMax Horn
svn-id: r55818
2010-08-09CINE: eliminate global variablesEugene Sandulenko
svn-id: r51937
2010-07-16CINE: Get rid of g_saveFileManMax Horn
svn-id: r50944
2010-05-19Implement FR #2841445: FW: Restart doesn't workEugene Sandulenko
svn-id: r49096
2010-05-19Implement FR #2841494: FW: Pause doesn't workEugene Sandulenko
svn-id: r49095
2010-05-09Patch #2987340: GSoC: CINE: Hide cursor when viewing inventoryEugene Sandulenko
svn-id: r48994
2010-04-21CINE: Change Doxygen commands to match our CFCMax Horn
svn-id: r48764
2010-03-23Cine: Fix regression in executePlayerInput (Caused slowness when clicking ↵Kari Salminen
when moving). The regression was caused by r47505. svn-id: r48373
2010-03-18COMMON: Get rid of Common::StringListMax Horn
svn-id: r48287
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-24Cine: executePlayerInput: Operation Stealth: Fix target object name not ↵Kari Salminen
disappearing when passing over an empty area with a verb already chosen. svn-id: r47519
2010-01-24Cine: executePlayerInput: Fix broken Y-movement in Operation Stealth (D'oh! ↵Kari Salminen
Copy-pasted X to where Y was meant :-P). - Hopefully NOW things should work without r33872! svn-id: r47518
2010-01-24Cine: executePlayerInput: Add TODO about investigating why some buttons ↵Kari Salminen
don't work currently. svn-id: r47517
2010-01-24Cine: executePlayerInput: Revert r33872 as things should work without it now.Kari Salminen
With the latest changes to executePlayerInput we should now be able to free the girl at the bottom of the ocean without the r33872. The commit log from r33872 was: "Fix for bugging moving at the bottom of the ocean when trying to free the 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: r47516
2010-01-24Cine: executePlayerInput: Add makeActionMenu-part to keyboard handling and a ↵Kari Salminen
couple of TODOs for Operation Stealth. - NOTE: This doesn't seem to work correctly yet. My current guess is that it has to do with how some keyboard events are handled in cine/main_loop.cpp's processEvent-function and some in cine/various.cpp's executePlayerInput. svn-id: r47515
2010-01-24Cine: executePlayerInput: Implement moving using keyboard for Operation Stealth.Kari Salminen
svn-id: r47513
2010-01-24Cine: executePlayerInput: Implement 'A player command is given, left mouse ↵Kari Salminen
button is down, right mouse button is up'-case for Operation Stealth. - Also changed a do-while -loop into a while-loop as it should be for both FW and OS according to disassembly. svn-id: r47512
2010-01-24Cine: executePlayerInput: Fix 'No player command is given, left mouse button ↵Kari Salminen
is down, right mouse button is up'-case for Operation Stealth. svn-id: r47510
2010-01-24Cine: executePlayerInput: Fix 'left and right mouse buttons are up'-case for ↵Kari Salminen
Operation Stealth. svn-id: r47509
2010-01-24Cine: executePlayerInput: Combine 'left mouse button is up, right mouse ↵Kari Salminen
button is down'-cases into one code part. Additionally: - Operation Stealth specific: Make makeActionMenu() use canUseOnItemTable. This would seem to be the correct way according to disassembly (Although there is of course a possibility that I have overlooked some part of the code). svn-id: r47508
2010-01-24Cine: executePlayerInput: Name used keys in switch-clause (F1-F10, Ins, Del).Kari Salminen
svn-id: r47507
2010-01-24Cine: executePlayerInput: Combine mouse handling plus a few other things.Kari Salminen
- Combines mouse position and button state fetching from two branches (allowPlayerInput / !allowPlayerInput) into a single loop with a little more exotic while-clause. NOTE! Added manageEvents-call into the unified version although there was no manageEvents-call in one of the versions that was combined. Tested a little and didn't seem to matter, but hopefully won't cause any regressions! - Limit first possible 'renderer->setCommand(commandBuffer)' call to Future Wars only (Checked with FW & OS disassembly). - Combined all cases of 'left and right mouse buttons are down' into a single if-clause (All those cases call makeSystemMenu). svn-id: r47505
2010-01-24Cine: Document branches in executePlayerInput and remove dead code ↵Kari Salminen
(if-clauses that are always true or always false). svn-id: r47503
2010-01-24Cine: Cleanup (Use an enumeration for mouse button states rather than values ↵Kari Salminen
1 and 2). svn-id: r47502
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-08Change doxygen inline comments from "//!" to "///" as proposed on -develMax Horn
svn-id: r44802
2009-09-22Implement menu stack to support all menu color effects, specific to the ↵Johannes Schickel
Amiga version of the game. svn-id: r44263
2009-09-21Changed AMIGA menu code to closer match the original. (The menu item ↵Johannes Schickel
highlight selection is still wrong though.) svn-id: r44231
2009-09-21Add more shouldQuit checks in event loops.Johannes Schickel
svn-id: r44230
2009-06-27Name Operation Stealth's global variables 251 and 252 and init them in main ↵Kari Salminen
loop. These are used as a sort of a backup for the mouse position (x, y) variables 249 and 250. Future Wars's VAR_MOUSE_Y_MODE and Operation Stealth's VAR_MOUSE_X_POS_2ND (251) clash and that's possibly why executePlayerInput currently works incorrectly with Operation Stealth. More reverse engineering is needed... svn-id: r41915
2009-05-11Fix bug #2055836: "FW: Music is not restarted when loading a saved game"Eugene Sandulenko
svn-id: r40465
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-11-13Started moving Save/Load code to saveload.cpp/.hFilippos Karapetis
svn-id: r35033
2008-11-12Saving and loading from the GMM is now supported in the cine engineFilippos Karapetis
svn-id: r35031
2008-10-06Added new type Engine::Feature; pushed down some #include dependenciesMax Horn
svn-id: r34755
2008-09-13Big patch changing the signature of various Stream methods (some ports may ↵Max Horn
need to be slightly tweaked to fix overloading errors/warnings) svn-id: r34514
2008-09-01Merging more of the GSoC 2008 RTL branch: CINEMax Horn
svn-id: r34244
2008-08-21Fix typo.Kari Salminen
svn-id: r34084
2008-08-16Merged revisions ↵Christopher Page
33777,33781-33788,33790,33792-33793,33795,33797,33805,33807-33812,33815-33817,33819,33822,33826,33829,33837,33839,33844,33847,33858-33861,33864,33871-33873,33875,33877-33879,33886,33889-33892,33894,33896,33900,33902-33903,33919 via svnmerge from https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk svn-id: r33924
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-10Merged revisions ↵Christopher Page
33719,33721-33723,33725-33727,33729-33730,33733,33736,33742,33754,33756,33758,33761,33763,33766 via svnmerge from https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk svn-id: r33769