Torbjörn Andersson
e6fbc4fb88
CINE: Remove unused variable 'di'
...
As far as I can tell, it converted the selection back to Y coordinate
for no apparent reason.
2011-10-09 10:16:04 +02:00
eriktorbjorn
5dd8f2575b
JANITORIAL: Silence a couple of "variable set but not used" warnings.
2011-06-30 23:47:10 +02:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
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-20 00:59:48 +02:00
D G Turner
0d379b3783
CINE: Replace snprintf() usage with Common::String::format()
...
Safer and less portability issues.
2011-06-02 03:44:31 +01:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
2d1c8a3533
ALL: Fix whitespaces / indention
...
svn-id: r55818
2011-02-07 23:01:06 +00:00
Eugene Sandulenko
327d30d719
CINE: eliminate global variables
...
svn-id: r51937
2010-08-09 11:38:01 +00:00
Max Horn
587f3cf958
CINE: Get rid of g_saveFileMan
...
svn-id: r50944
2010-07-16 21:56:30 +00:00
Eugene Sandulenko
15c533d2c2
Implement FR #2841445 : FW: Restart doesn't work
...
svn-id: r49096
2010-05-19 12:34:10 +00:00
Eugene Sandulenko
2be9bb3d5f
Implement FR #2841494 : FW: Pause doesn't work
...
svn-id: r49095
2010-05-19 12:17:59 +00:00
Eugene Sandulenko
0078818549
Patch #2987340 : GSoC: CINE: Hide cursor when viewing inventory
...
svn-id: r48994
2010-05-09 21:15:58 +00:00
Max Horn
37b7be4519
CINE: Change Doxygen commands to match our CFC
...
svn-id: r48764
2010-04-21 21:22:43 +00:00
Kari Salminen
5d62e682cc
Cine: Fix regression in executePlayerInput (Caused slowness when clicking when moving).
...
The regression was caused by r47505.
svn-id: r48373
2010-03-23 22:54:32 +00:00
Max Horn
cac0ac66e2
COMMON: Get rid of Common::StringList
...
svn-id: r48287
2010-03-18 15:54:40 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Kari Salminen
69e6b2a27a
Cine: executePlayerInput: Operation Stealth: Fix target object name not disappearing when passing over an empty area with a verb already chosen.
...
svn-id: r47519
2010-01-24 20:23:09 +00:00
Kari Salminen
710dd33592
Cine: executePlayerInput: Fix broken Y-movement in Operation Stealth (D'oh! Copy-pasted X to where Y was meant :-P).
...
- Hopefully NOW things should work without r33872!
svn-id: r47518
2010-01-24 20:16:16 +00:00
Kari Salminen
bd7b9400a6
Cine: executePlayerInput: Add TODO about investigating why some buttons don't work currently.
...
svn-id: r47517
2010-01-24 19:57:23 +00:00
Kari Salminen
ab730891ad
Cine: executePlayerInput: Revert r33872 as things should work without it now.
...
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-24 19:52:11 +00:00
Kari Salminen
c19afec75a
Cine: executePlayerInput: Add makeActionMenu-part to keyboard handling and a 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-24 19:47:53 +00:00
Kari Salminen
f2882cc2df
Cine: executePlayerInput: Implement moving using keyboard for Operation Stealth.
...
svn-id: r47513
2010-01-24 19:14:09 +00:00
Kari Salminen
d8cb07251e
Cine: executePlayerInput: Implement 'A player command is given, left mouse 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-24 18:58:57 +00:00
Kari Salminen
865b176b15
Cine: executePlayerInput: Fix 'No player command is given, left mouse button is down, right mouse button is up'-case for Operation Stealth.
...
svn-id: r47510
2010-01-24 18:40:29 +00:00
Kari Salminen
650a9b9c49
Cine: executePlayerInput: Fix 'left and right mouse buttons are up'-case for Operation Stealth.
...
svn-id: r47509
2010-01-24 18:27:56 +00:00
Kari Salminen
7ce227b670
Cine: executePlayerInput: Combine 'left mouse button is up, right mouse 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-24 18:20:22 +00:00
Kari Salminen
40cb795fe7
Cine: executePlayerInput: Name used keys in switch-clause (F1-F10, Ins, Del).
...
svn-id: r47507
2010-01-24 17:56:23 +00:00
Kari Salminen
414eadfb2a
Cine: executePlayerInput: Combine mouse handling plus a few other things.
...
- 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-24 17:46:37 +00:00
Kari Salminen
34581f12e4
Cine: Document branches in executePlayerInput and remove dead code (if-clauses that are always true or always false).
...
svn-id: r47503
2010-01-24 16:40:37 +00:00
Kari Salminen
53d8bd9760
Cine: Cleanup (Use an enumeration for mouse button states rather than values 1 and 2).
...
svn-id: r47502
2010-01-24 16:25:08 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
3399c3aeb6
Change doxygen inline comments from "//!" to "///" as proposed on -devel
...
svn-id: r44802
2009-10-08 21:28:57 +00:00
Johannes Schickel
e591333d4b
Implement menu stack to support all menu color effects, specific to the Amiga version of the game.
...
svn-id: r44263
2009-09-22 17:51:06 +00:00
Johannes Schickel
cb41cea6f1
Changed AMIGA menu code to closer match the original. (The menu item highlight selection is still wrong though.)
...
svn-id: r44231
2009-09-21 01:15:34 +00:00
Johannes Schickel
756659b00e
Add more shouldQuit checks in event loops.
...
svn-id: r44230
2009-09-21 01:15:11 +00:00
Kari Salminen
49dd58de45
Name Operation Stealth's global variables 251 and 252 and init them in main 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-06-27 12:26:26 +00:00
Eugene Sandulenko
d5b9437fb3
Fix bug #2055836 : "FW: Music is not restarted when loading a saved game"
...
svn-id: r40465
2009-05-11 19:31:55 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Filippos Karapetis
162634cc95
Started moving Save/Load code to saveload.cpp/.h
...
svn-id: r35033
2008-11-13 08:59:17 +00:00
Filippos Karapetis
28da377ccb
Saving and loading from the GMM is now supported in the cine engine
...
svn-id: r35031
2008-11-12 23:21:05 +00:00
Max Horn
6a2f3dc0b9
Added new type Engine::Feature; pushed down some #include dependencies
...
svn-id: r34755
2008-10-06 12:48:52 +00:00
Max Horn
655ce26b3f
Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
...
svn-id: r34514
2008-09-13 16:51:46 +00:00
Max Horn
a41c681d9d
Merging more of the GSoC 2008 RTL branch: CINE
...
svn-id: r34244
2008-09-01 17:47:36 +00:00
Kari Salminen
4d6101cff9
Fix typo.
...
svn-id: r34084
2008-08-21 14:43:03 +00:00
Christopher Page
909b66ef54
Merged revisions 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-16 04:30:01 +00:00
Kari Salminen
c2c2e940d0
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: r33872
2008-08-14 20:49:34 +00:00
Kari Salminen
eb9633ee1e
Implemented Operation Stealth's makeCommandLine.
...
svn-id: r33805
2008-08-12 19:33:17 +00:00
Kari Salminen
811e4b3128
Implemented Operation Stealth specific parts of processInventory and added 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-12 14:44:44 +00:00
Kari Salminen
c935a09ef5
Changed commandBuffer from a char[80] to Common::String and made 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-12 00:13:27 +00:00
Christopher Page
fcc00f20b9
Merged revisions 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
2008-08-10 21:58:18 +00:00