7511 Commits

Author SHA1 Message Date
Kari Salminen
a38234d6e6 Fix CineSaveGameFormat enumeration's include order (Caused problems at least with GCC).
svn-id: r33196
2008-07-22 12:17:44 +00:00
Nicola Mettifogo
cc0f95ce74 Fix build.
svn-id: r33193
2008-07-22 10:17:19 +00:00
Kari Salminen
2a90435e5d Fix for bug #2019355 (FW: broken compatibility with 0.11.1 saves):
- 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-22 10:15:58 +00:00
Nicola Mettifogo
446a0406de Fixed regression in dialogue code: certain commands weren't executed anymore after dialogue ended.
svn-id: r33191
2008-07-22 10:12:20 +00:00
Nicola Mettifogo
85f56095bf Removed unneeded input code.
svn-id: r33189
2008-07-22 09:12:10 +00:00
Nicola Mettifogo
791d2b3ba2 Changed comment display code so that input polling is integrated into the main loop, instead of being performed in a blocking way from a separate routine.
svn-id: r33188
2008-07-22 09:00:39 +00:00
Travis Howell
e1c71dab99 Spacing.
svn-id: r33168
2008-07-21 10:32:20 +00:00
Bertrand Augereau
ecd44b8f90 Avoid branching in the inner loop of AGOS drawVertImageCompressed
svn-id: r33167
2008-07-21 10:13:44 +00:00
Nicola Mettifogo
5a71d764e7 Some refactoring for tracking of floating labels.
svn-id: r33165
2008-07-21 09:25:40 +00:00
Nicola Mettifogo
361bed0a95 Massive refactoring of dialogue code, which is now implemented as a finite state machine. Related code in other files has been updated has well.
svn-id: r33162
2008-07-21 06:08:30 +00:00
Torbjörn Andersson
0b8602f995 Commented out some more PC-98 audio stuff, to avoid warnings.
svn-id: r33146
2008-07-20 19:25:16 +00:00
Florian Kagerer
2354ea80c6 KYRA: disable incomplete PC-98 audio support for 0.12.0 release (use towns audio instead)
svn-id: r33145
2008-07-20 18:00:00 +00:00
Max Horn
a49a3c6aaa cleanup
svn-id: r33135
2008-07-20 16:27:12 +00:00
Kari Salminen
8757326b5f Added savefile position comments to savegame loading routine (Helpful for debugging the formats).
svn-id: r33096
2008-07-18 14:01:53 +00:00
Torbjörn Andersson
702e26965c Don't crash if you try to use music file #2 as music file #1. When the music
wasn't found, it would close the file even if something else was already
playing from it. (Some music is in both files.)

svn-id: r33094
2008-07-18 04:16:00 +00:00
Kari Salminen
67bef188d3 Patch #2019455: Patch for reducing the BSS size of Cine engine.
svn-id: r33087
2008-07-17 07:13:41 +00:00
Nicola Mettifogo
17d86414cb Fixed regression bug in dialogue, which de-facto allowed user to skip in-game protection.
svn-id: r33086
2008-07-17 00:38:11 +00:00
Bertrand Augereau
bd17a600dc Split the drawVertImage function in the agos engine to make it clearer
and easier to profile

svn-id: r33083
2008-07-16 09:08:44 +00:00
Gregory Montoir
cdade7eff3 fix bug #1876741: changed .SB playback rate to 11840Hz (matches dos game)
svn-id: r33079
2008-07-15 20:31:11 +00:00
Gregory Montoir
2bae0df17e fix bug #1995042: stop previous sfx playback when starting a new sfx (matches original dos code). Also removed the "sound skipping" hack in final bam scene.
svn-id: r33078
2008-07-15 20:26:12 +00:00
Nicola Mettifogo
551f6d71c3 Made frame unpacking buffer dynamic (this frees some BSS space).
svn-id: r33072
2008-07-15 10:59:58 +00:00
Kari Salminen
60357650e0 Fix for bug #2016647 (FW: crash with italian amiga version).
- 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-14 23:10:51 +00:00
Willem Jan Palenstijn
ba4ba85124 remove accidentally committed debugging code; fix shadowing warning
svn-id: r33064
2008-07-14 21:04:42 +00:00
Willem Jan Palenstijn
ff5f3730c5 Don't draw scumm saveload dialog while reflowing layout, as that would use uninitialized values
svn-id: r33063
2008-07-14 21:00:39 +00:00
Bertrand Augereau
9c91f091ff Register spilling avoided in AGOS background drawing (and 2x unrolling)
svn-id: r33062
2008-07-14 20:34:31 +00:00
Max Horn
c25c406c00 cleanup (and test for Marwan's branch.... ;)
svn-id: r33061
2008-07-14 19:14:26 +00:00
Nicola Mettifogo
c48f3ca8d8 Removed all labels from the rendering list to avoid random crashes after introduction is over.
svn-id: r33058
2008-07-14 13:35:43 +00:00
Paul Gilbert
eaeb1587f4 Fix for missing data in the savegame format that could result in not being able to talk to Goewin in the apothecary after restoring a savegame
svn-id: r33057
2008-07-14 10:33:57 +00:00
Nicola Mettifogo
d0ae6885ac Fixed regression in walk code. Now standing frames are correctly selected when the character encounters an unexpected blocking object in his/her path.
svn-id: r33053
2008-07-14 00:21:05 +00:00
Nicola Mettifogo
7b2645248c Made sure characters are not removed from the rendering list during switches.
svn-id: r33052
2008-07-14 00:13:31 +00:00
Nicola Mettifogo
ef95c6ff70 More refactoring of walk code.
svn-id: r33033
2008-07-13 13:04:36 +00:00
Florian Kagerer
ba5f14692f - fix for bug #2016965: KYRA: does not compile in MSVC71
svn-id: r33030
2008-07-13 12:20:24 +00:00
Nicola Mettifogo
059936854c Cleanup of walk code.
svn-id: r33023
2008-07-13 06:27:31 +00:00
Nicola Mettifogo
2a80bd0678 Cleanup and improved debugging output for CommandExec::run()
svn-id: r33022
2008-07-13 03:39:42 +00:00
Nicola Mettifogo
9c2d96530b Properly implemented the OFF command. The new rendering order for graphics let this mistake finally surface.
svn-id: r33021
2008-07-13 03:30:14 +00:00
Bertrand Augereau
5de579930d Minor constness fix to help with aliasing
svn-id: r33017
2008-07-12 20:35:44 +00:00
Sven Hesse
c1ec21d999 Changed tricky variable access from pointers to a new class that minds endianess.
This should fix a few regressions with BE games on LE systems and vice versa that I introduced when I changed how variables are stored (which was necessary to get Woodruff work on BE systems).

svn-id: r33014
2008-07-12 15:21:38 +00:00
Max Horn
7ddd961bf2 cleanup
svn-id: r33010
2008-07-11 20:28:50 +00:00
Max Horn
815d75e870 Don't use kPlainSoundType if you don't have to
svn-id: r33009
2008-07-11 20:28:14 +00:00
Nicola Mettifogo
8ba56e98cf Cleanup.
svn-id: r33006
2008-07-11 13:36:22 +00:00
Nicola Mettifogo
8ed023142a Moved program and command execution code out of the engine, into their own brand new
classes.

svn-id: r33003
2008-07-11 13:06:28 +00:00
Nicola Mettifogo
fe65583657 Fixed leak in sound code by explicitly deleting the midi driver.
svn-id: r33002
2008-07-11 12:55:08 +00:00
Bertrand Augereau
f41ab55021 Fixed a few warnings
svn-id: r32994
2008-07-10 18:01:54 +00:00
Torbjörn Andersson
c8488c060c Fixed Kyra 3 detection regression.
svn-id: r32992
2008-07-10 16:19:17 +00:00
Johannes Schickel
985a032871 Typo.
svn-id: r32990
2008-07-10 12:14:00 +00:00
Johannes Schickel
a117024d23 Added filename to unkown command/opcode warnings for TIM scripts.
svn-id: r32989
2008-07-10 12:12:42 +00:00
Johannes Schickel
e1e95f0c0e Added filename to unknown opcode/command warnings of EMC scripts.
svn-id: r32988
2008-07-10 12:05:38 +00:00
Johannes Schickel
9a34ef702d Fixed mem leak in MIDI related code.
svn-id: r32987
2008-07-10 11:28:51 +00:00
Johannes Schickel
092d9f38c5 Workaround for gcc 2.95 compiler bug.
svn-id: r32986
2008-07-10 11:25:43 +00:00
Nicola Mettifogo
03cd937b13 Fixed destruction of sprites in BRA.
svn-id: r32983
2008-07-10 02:00:54 +00:00