7391 Commits

Author SHA1 Message Date
Kari Salminen
0f07592184 Made drawPlainBox's effective width and height always at least one.
- Makes oxygen gauge during first arcade sequence visible as it gave drawPlainBox a height of zero.
Made type 21 overlays be drawn as type 22 (Filled rectangle).
- For an example the oxygen gauge during the first arcade sequence is a type 21 overlay.
Flipped type 21 & 22 overlays as it looks correct for the oxygen gauge.
These features are quite WIP, they need testing to see if they're correct.

svn-id: r33721
2008-08-09 19:47:05 +00:00
Kostas Nakos
355f100793 fix MR on ce: allocate large buffer on the heap instead and of the stack, and improve the workaround
svn-id: r33714
2008-08-09 18:09:24 +00:00
Kari Salminen
e02f94d392 Added preliminary version of drawing type 22 overlays (Such overlays are added with opcode 0xA4 (o2_loadMask22) and removed with opcode 0xA5 (o2_unloadMask22)). Things might be wrong so needs testing! WIP!
svn-id: r33713
2008-08-09 16:07:08 +00:00
Kari Salminen
80648431d9 Added updating of global variable var5 to Operation Stealth's renderOverlay function's type 20 overlay case (Previously var5 wasn't updated anywhere!). Also added a lower bound for var5's value into a comparison (Previously only the upper bound was tested for).
svn-id: r33712
2008-08-09 15:17:32 +00:00
Kari Salminen
36e6bb27b5 Removing moving with keys qweasdzxc for now because they messed with savegame name typing. One can move with the cursor keys anyway.
svn-id: r33710
2008-08-09 10:52:48 +00:00
Kari Salminen
8e33f1530c Small cleanup: Renamed rol to rolByte and made it handle all cases.
svn-id: r33708
2008-08-09 10:44:12 +00:00
Kari Salminen
c0701bfcb6 Added detection entry for the Sony published CD version of Future Wars.
Also added decrypting of the crypted AUTO00.PRC for this particular version.
Now this version should work but no CD audio support for it yet though.

svn-id: r33703
2008-08-08 18:28:13 +00:00
Kari Salminen
70760a77fd Partially fix Adlib volume setting in Cine (Now uses music volume for Adlib volume, previously always played with full volume. Doesn't differentiate between playing sound effects and music!).
svn-id: r33700
2008-08-08 14:46:19 +00:00
Kari Salminen
5cb08bd1e5 Added basic moving using keyboard (Only works in Operation Stealth at the 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-08 13:30:01 +00:00
Travis Howell
f68d52ce4d Remove debug leftover.
svn-id: r33696
2008-08-08 02:49:51 +00:00
Travis Howell
fd65ea311a Hopefully allow quiting at any stage AGOS engines games again.
svn-id: r33693
2008-08-08 02:18:17 +00:00
Gregory Montoir
52650efb6a fix for bug #2040484: TOUCHE: Graphic glitch with long answer options
svn-id: r33691
2008-08-07 21:50:12 +00:00
Gregory Montoir
303333352a fix for bug #2040311: TOUCHE: Missing characters in the spanish version
svn-id: r33690
2008-08-07 21:49:55 +00:00
Kari Salminen
092d7224b9 Implemented game speed changing by pressing - or + to e.g. ease testing.
svn-id: r33689
2008-08-07 21:46:56 +00:00
Kari Salminen
da84a54694 Added precautionary tests to background scrolling function in Operation Stealth to avoid possible memory corruptions.
svn-id: r33688
2008-08-07 19:46:06 +00:00
Kari Salminen
853f4dbbe0 Made drawPlainBox handle border cases so it won't corrupt memory so easily. This may help with some memory corruption issues when for an example trying to draw the player's command string out of screen.
svn-id: r33687
2008-08-07 19:31:12 +00:00
Kari Salminen
b8bfd5d04f Fix for popup boxes sometimes blocking animation when they shouldn't in 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-07 19:04:19 +00:00
Torbjörn Andersson
99ade3d25c Initialise the _sound object. Otherwise, ScummVM crashes for me if I use a native
MIDI driver instead of Adlib.

svn-id: r33678
2008-08-07 13:36:02 +00:00
Kostas Nakos
1a99bce201 smartphone-specific code not needed anymore
svn-id: r33674
2008-08-07 09:10:42 +00:00
Kari Salminen
92eec1b905 HACK: In Operation Stealth after the first arcade sequence jump player's position to avoid getting stuck.
The player's position is changed only by *one* pixel but it helps
and makes it possible to carry on with the game (Previously the player was totally stuck).

svn-id: r33673
2008-08-06 23:12:25 +00:00
Kari Salminen
f5e9a3e185 Tiny comment update to loadCt-opcodes: Load collision table data.
svn-id: r33670
2008-08-06 20:58:02 +00:00
Kari Salminen
a10753e2a1 Renamed page3Raw to collisionPage so it's more apparent what it does.
svn-id: r33669
2008-08-06 20:54:38 +00:00
Kari Salminen
66fc0d6a25 Add 320x200 screen bounds checking to Operation Stealth's checkCollision 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-08-06 20:47:59 +00:00
Kari Salminen
a944497d75 HACK: Force oxygen to maximum during Operation Stealth's first arcade sequence.
This way the arcade sequence is completable now.
This hack should be removed later and the first
arcade sequence be made properly playable!

svn-id: r33667
2008-08-06 20:41:53 +00:00
Max Horn
32ad70f608 Do not query savestates which obviously do not exist (to shut up bogus console warnings)
svn-id: r33664
2008-08-06 16:03:06 +00:00
Max Horn
e7027503f1 Workaround for bug #2016521 (DOTT: Bernard impersonating LaVerne)
svn-id: r33655
2008-08-06 10:32:20 +00:00
Max Horn
eb649983fc SCUMM: Renamed inventoryScript -> inventoryScriptIndy3Mac
svn-id: r33654
2008-08-06 09:13:57 +00:00
Kari Salminen
df1246bf9f Workaround for missing player character animation when exiting the airport in Santa Paragua in at least the 256 color PC version of Operation Stealth.
svn-id: r33644
2008-08-05 21:20:11 +00:00
Kari Salminen
f3ecdaa6fe Made rest of resource loading functions used in loadResource return -1 on error.
This fixed a crash in Operation Stealth when walking out of the airport
(Some file couldn't be opened and the game crashed because of that.
Now it doesn't crash but handles the missing file gracefully).

svn-id: r33643
2008-08-05 19:30:16 +00:00
Kari Salminen
9417066641 Add detection entry for a previously unrecognized 16 color PC version of Operation Stealth (The John Glames variant).
svn-id: r33642
2008-08-05 18:17:55 +00:00
Max Horn
8d830effc1 SCUMM: cleanup SaveLoadChooser::updateInfos code
svn-id: r33640
2008-08-05 13:11:22 +00:00
Max Horn
bedebaccc3 SCUMM: Don't try to load metadata for slot -1 (i.e. don't try to load metadata if nothing is selected)
svn-id: r33639
2008-08-05 13:08:07 +00:00
Kari Salminen
966b5eb94e Fix prompt updating regression introduced in r32257:
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-05 12:58:23 +00:00
Johannes Schickel
e2e0b1393b Output errors on (some) missing files.
svn-id: r33635
2008-08-05 12:13:01 +00:00
Johannes Schickel
b89c9c9b89 Changed implementation parameters/return values to match definition.
svn-id: r33632
2008-08-05 11:32:16 +00:00
Kari Salminen
99addb709c Fix for misplaced objects in mouse object selection (Operation Stealth 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-08-04 19:32:52 +00:00
Filippos Karapetis
1ed65c1e2e Added Italian translation for the load confirmation window in IHNM
svn-id: r33611
2008-08-04 15:23:08 +00:00
Max Horn
73cbcd33e0 SCUMM: Only try to load savefile metadata from slots >= 0
svn-id: r33607
2008-08-04 11:46:52 +00:00
Max Horn
5f4c9f913f Turned InSaveFile & OutSaveFile into simple typedefs
svn-id: r33606
2008-08-04 11:38:25 +00:00
Travis Howell
3f180a4c3f Remove debug left over.
svn-id: r33596
2008-08-04 01:57:50 +00:00
Florian Kagerer
eec2a0137d fix last commit (invalid kyra.dat game features for HOFCD)
svn-id: r33580
2008-08-03 12:50:56 +00:00
Johannes Schickel
126d4a5ec6 Added detection entries for kyra2 cd italian fan translation (see fr#2003504 "KYRA: add support for Italian version of Kyrandia 2&3"). (totally untested!)
svn-id: r33579
2008-08-03 12:16:53 +00:00
Florian Kagerer
5ae93cb108 add support for HOF Italian fan translation to kyra.dat
svn-id: r33578
2008-08-03 12:09:48 +00:00
Eugene Sandulenko
c49e7ab73f Fix bug #2011470: "DRASCULA: slowdown when you hold mouse buttons"
svn-id: r33576
2008-08-03 12:02:09 +00:00
Eugene Sandulenko
c88c69f357 Fix bug #2017432: "DRASCULA: Typing is slow when you save a game"
svn-id: r33574
2008-08-03 11:42:05 +00:00
Torbjörn Andersson
117dee5e4a Fixed bug #1995033 ("BASS: BG Sound stopped on opening item list"). Apparently
the sound is supposed to be paused and then unpaused, but the pause function is
called many more times than the unpause function. In the original, this
presumably didn't matter. In ScummVM's mixer, it does.

svn-id: r33570
2008-08-03 10:16:17 +00:00
Torbjörn Andersson
e8cee7823d Fixed bug #1995022 ("BASS: wrong displayed 2 line text").
svn-id: r33568
2008-08-03 09:51:13 +00:00
Torbjörn Andersson
dcecff4829 Fixed bug that prevented upper-case letters from being used in savegame names.
Apparently, strchr(..., 0) will find the string terminator - at least for me -
and when that's added to the name, it will terminate the string.

svn-id: r33565
2008-08-03 09:41:10 +00:00
Kari Salminen
b76f766888 Shut up MSVC warning about mgY being an unreferenced local variable.
svn-id: r33561
2008-08-03 08:01:11 +00:00
Torbjörn Andersson
4984a28ca5 Fixed #2021902 ("DRASCULA: Can't adjust the volume inside the game"). I can't
verify that this matches the original behaviour, but at least it's better now.

svn-id: r33558
2008-08-03 07:40:04 +00:00