Commit Graph

486 Commits

Author SHA1 Message Date
Eugene Sandulenko
17df6b343a MORTEVIELLE: Remove unused variable 2013-09-30 14:36:59 +03:00
Thierry Crozat
6478a78a8e MORTEVIELLE: Implement Engine::getDebugger() 2013-09-01 22:28:03 +01:00
Thierry Crozat
8216e6dabf MORTEVIELLE: Freeze clock in game when pausing the game 2013-09-01 22:04:30 +01:00
Thierry Crozat
3ab88c464a MORTEVIELLE: Fix computation of elapsed time around midnight
Replace use of getTimeAndDate() by getMillis() when computing
elapsed time. This fixes an issue when playing around midnight.
Also rename some variables for clarity (since they contain a time
in seconds having Hour in the name was a bit confusing).
2013-09-01 22:04:30 +01:00
Strangerke
558f404e62 MORTEVIELLE: Use similar check in fctClose and fctSearch than in fctSelfPut 2013-08-22 00:42:17 +02:00
Strangerke
2b03c63631 MORTEVIELLE: Better fix of CID 1063212. Thanks wjp for pointing out. 2013-08-22 00:17:29 +02:00
Strangerke
197d2f1c08 MORTEVIELLE: Fix check introduced in 6cfd3028c1. 2013-08-21 23:53:55 +02:00
Strangerke
5a79444843 MORTEVIELLE: Fix CID 1063212 2013-08-21 22:36:14 +02:00
Strangerke
6cfd3028c1 MORTEVIELLE: Fix CID 1063213 2013-08-21 22:31:39 +02:00
Strangerke
9c3cefa6f0 MORTEVIELLE: Silent CID 1063229 2013-08-21 22:12:20 +02:00
Thierry Crozat
800ee561c9 MORTEVIELLE: Add detection entry for improved German translation
I also reworked a bit how detection work so that both the original
and the improved German translations can be played.
2013-08-21 11:22:51 +01:00
Strangerke
3ef4222f33 MORTEVIELLE: Replace some big if statements by switch statements 2013-08-21 08:37:57 +02:00
Strangerke
a710bb5ca4 MORTEVIELLE: Remove second parameter of show() 2013-08-21 08:37:56 +02:00
Strangerke
972cdf0e12 MORTEVIELLE: Avoid erroring out when the user tries to load a missing save game 2013-08-21 08:37:55 +02:00
Strangerke
1422004a80 MORTEVIELLE: Fix crash when loading from launcher 2013-08-20 23:10:05 +02:00
Strangerke
50ef208e31 MORTEVIELLE: Add some more checks in order to handle properly the first character of some German menu entries 2013-08-20 07:44:41 +02:00
Strangerke
5fdfc0996c MORTEVIELLE: Fix display of the rod and the ball in the attic, when using Self/Put 2013-08-20 02:14:24 +02:00
Thierry Crozat
efbf1ff5f9 MORTEVIELLE: Store German menu data in data file and clean menu code
This opens the door to a better translation of the menu to German. Also
the code will now always try to read the menu data from the mort.data file
and only if this fails it will use the game data. And remove some dead code
that was to support the corrupted menu.mor file.
2013-08-19 21:11:23 +01:00
Strangerke
9eaf978e33 MORTEVIELLE: Fix display of ending speech in German DOS edition 2013-08-19 21:03:14 +02:00
Strangerke
f979de547b MORTEVIELLE: Avoid a crash related to speech during the ending sequence of the German version 2013-08-19 20:42:47 +02:00
Strangerke
c981c52799 MORTEVIELLE: some renaming in Dialogs 2013-08-18 10:21:32 +02:00
Strangerke
818b9a652b MORTEVIELLE: Remove some dead code and variables related to graphical modes 2013-08-17 12:45:28 +02:00
Strangerke
a5ec205f46 MORTEVIELLE: Fix occasional alignment issue in Action verb list 2013-08-17 11:36:54 +02:00
Strangerke
ddb9f3862d MORTEVIELLE: Fix verb highlighting in Action and Self menus. Refactor functions related to MenuItem 2013-08-17 11:18:13 +02:00
Strangerke
e2856ed85b MORTEVIELLE: Avoid using sav0.mor in run() 2013-08-16 23:29:52 +02:00
Strangerke
1d21f5db26 MORTEVIELLE: Fix bug in previous commit, some multiple if statement optimizations 2013-08-16 20:06:34 +02:00
Strangerke
9dd65e5ef3 MORTEVIELLE: Put resolution scaler in a const, remove some dead code related to it 2013-08-16 19:23:29 +02:00
Strangerke
481aeb0b0b MORTEVIELLE: Remove code related to unsupported display modes 2013-08-16 18:50:28 +02:00
Strangerke
e6582fe7d1 MORTEVIELLE: Fix the initialization of verbs from the DAT file 2013-08-16 14:25:11 +02:00
Strangerke
dcfb1298dc MORTEVIELLE: Some refactoring in Menu 2013-08-16 13:29:50 +02:00
Thierry Crozat
4a885af83a MORTEVIELLE: Improve reading of menu file
Do not try to read the menu.mor file as it has a different format not
supported (and detection for it was already removed). Also only tries
to read the menu for the original language. This avoids using the
French menu with the German game when both files are present in
the search path.
2013-08-16 10:47:11 +01:00
Strangerke
3af7b8d872 MORTEVIELLE: Rename opcode variables 2013-08-15 20:03:27 +02:00
Strangerke
563e62d625 MORTEVIELLE: Use verb order stored in mort.dat 2013-08-15 07:57:07 +02:00
Strangerke
6d5580f4ed MORTEVIELLE: Some renaming 2013-08-14 08:17:37 +02:00
Strangerke
cb0a0880a2 MORTEVIELLE: Fix shadowed variable. Thanks LordHoto for pointing out 2013-08-14 07:46:22 +02:00
Strangerke
0d1772b95d MORTEVIELLE: Introduce original language in detection 2013-08-13 08:34:36 +02:00
Strangerke
ef3c4689b3 MORTEVIELLE: Remove the detection of a broken menu.mor file. Bug reported by criezy 2013-08-13 07:57:50 +02:00
Strangerke
3e75c5acc1 MORTEVIELLE: Wait for the end of sound in some more places 2013-08-13 07:54:08 +02:00
Strangerke
d811df89ff MORTEVIELLE: Fix door animation display when opening the doors 2013-08-13 00:06:09 +02:00
Strangerke
5e7e67beb9 MORTEVIELLE: Improve sound support 2013-08-12 08:17:10 +02:00
Strangerke
43b729cae8 MORTEVIELLE: Remove useless code 2013-08-11 19:13:21 +02:00
Strangerke
54f391a689 MORTEVIELLE: Merge SpeechManager and SoundManager 2013-08-11 18:09:40 +02:00
Strangerke
f621297dc7 MORTEVIELLE: Get rid of the 640Kb _mem buffer 2013-08-11 17:16:30 +02:00
Strangerke
62e4945ec4 MORTEVIELLE: Fix warnings about converting from double to int 2013-08-11 15:08:13 +02:00
Strangerke
4ddf729c07 MORTEVIELLE: Remove some useless code and variables 2013-08-11 12:53:01 +02:00
Strangerke
17245005c3 MORTEVIELLE: Fix sound checks (thanks to fuzzie for pointing them out) 2013-08-11 12:40:53 +02:00
Strangerke
e48515d402 MORTEVIELLE: Get rid of the PCSpeaker class 2013-08-11 11:45:53 +02:00
Strangerke
b749c2115b MORTEVIELLE: Move the end of "sentence" to the main loop in order to fix the display 2013-08-11 11:40:16 +02:00
Strangerke
4b1c0b29ea MORTEVIELLE: Add an initialization of _charAnswerCount in initMaxAnswer() 2013-08-11 00:02:57 +02:00
Strangerke
e209e15833 MORTEVIELLE: Fix check of end of stream 2013-08-10 22:37:26 +02:00
Strangerke
eb61855ca0 MORTEVIELLE: Avoid loading sfx and noise files multiple times 2013-08-10 22:17:10 +02:00
Strangerke
0c00a7fde8 MORTEVIELLE: Some refactoring in noise sound code 2013-08-10 21:56:21 +02:00
Strangerke
272740bb5c MORTEVIELLE: Handle sounds 2013-08-10 16:23:51 +02:00
Strangerke
673ea511ea MORTEVIELLE: some refactoring in ambiant sound code 2013-08-10 14:01:30 +02:00
Strangerke
62b6c333d5 MORTEVIELLE: Play ambiant sounds 2013-08-10 13:41:50 +02:00
Strangerke
7d6d7a7945 MORTEVIELLE: Use more accurate frequency for music 2013-08-09 18:37:17 +02:00
Johannes Schickel
7f8308e0eb Merge pull request #365 from lordhoto/protected-pixels
Make Graphics::Surface::pixels protected.
2013-08-07 12:24:59 -07:00
Strangerke
71a1d18b0c MORTEVIELLE: Fix flags in playSong(). Thanks clone2727 for telling about it 2013-08-05 00:40:47 +02:00
Strangerke
80cc1700a7 MORTEVIELLE: Fix leak in playSong, refactor it a bit 2013-08-05 00:13:57 +02:00
Thierry Crozat
7b517f7fd1 MORTEVIELLE: Improve looping of the intro song
Using a LoopingAudioStream gets rid of the pause between each loop
(and simplifies the code).
2013-08-04 12:59:34 +01:00
Thierry Crozat
deef0b955c MORTEVIELLE: Fix crash in sound mixer when closing the engine
This was due to the _speakerHandle being reused between its
initialisation in the SoundManager constructor and the destructor
causing it to have a wrong value when trying (and failing) to stop
the PCSpeaker channel in the mixer before deleting the stream.
2013-08-04 12:56:15 +01:00
Strangerke
fbb1137f94 MORTEVIELLE: Take shouldQuit() into account while a song is played 2013-08-04 10:49:06 +02:00
Strangerke
c1f93815ee MORTEVIELLE: Compute real buffer size in order to avoid ticks at the end of the song 2013-08-04 10:46:10 +02:00
Strangerke
134532090b MORTEVIELLE: Implement music in intro screen 2013-08-04 10:39:34 +02:00
Torbjörn Andersson
870a583c8b MORTEVIELLE: Pass Pattern struct by reference
This should avoid unnecessary copying of a 400+ byte struct. This
was a low-priority Coverity issue, for some reason without a CID.
2013-08-04 09:24:33 +02:00
Torbjörn Andersson
38071bc5c5 MORTEVIELLE: Fix out-of-bounds read
This should be sufficient. At this point, cy is at most 23, and if
cx is 41 it's either 23 or less than 20. That means ix is either
46 or less than 43. If it's less than 43, there is no out of bounds
access, and now we look at the special case first.

This was a Coverity issue, but for some reason I don't see any CID
for it.
2013-08-04 09:14:11 +02:00
Thierry Crozat
0a2e64b903 DEVTOOLS: Include English menu in mortevielle dat file 2013-08-03 16:50:14 +01:00
Strangerke
178feb8e8b MORTEVIELLE: Rename ROOM9 into JULIA_ROOM 2013-08-03 14:55:19 +02:00
Strangerke
6d2f53a63c MORTEVIELLE: Fix error in c79ce89680 2013-08-03 13:18:34 +02:00
Strangerke
65b0b59bd5 MORTEVIELLE: Some more renaming 2013-08-03 12:56:21 +02:00
Strangerke
c79ce89680 MORTEVIELLE: Rework code using _openObjects 2013-08-03 12:09:13 +02:00
Johannes Schickel
3917608df7 MORTEVIELLE: Do not set Surface::pixels directly anymore. 2013-08-03 04:14:08 +02:00
Johannes Schickel
0c0f99eb96 MORTEVIELLE: Take advantage of Surface::getPixels. 2013-08-03 04:02:51 +02:00
Johannes Schickel
2117feaeec MORTEVIELLE: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:33 +02:00
D G Turner
ffef92a134 MORTEVIELLE: Fix two GCC compiler warnings.
The first is due to a variable set but never used i.e. destSurface, but
I think this call is still needed to lock the area being copied, hence
have removed the variable, but not the call.

The second was a real bug in the type of the print format string used
for savegame naming. slot is a number, not a string and can vary from 0
to 999, hence the 3 digit fixed size with zero padded prefix.
2013-07-31 03:36:16 +01:00
D G Turner
b4a0fd13ef MORTEVIELLE: Another fix for WinCE compilation.
S_OK is a system define in the WinCE toolchain library headers, so this
conflicts. Renamed to S_OKAY in the engine code to avoid this.
2013-07-31 01:07:48 +01:00
D G Turner
3a4507bf5a MORTEVIELLE: Fix compilation on WinCE.
The LANG_* symbols were colliding with defined symbols in the WinCE
system headers. Renamed to avoid this.
2013-07-30 20:53:07 +01:00
Strangerke
b50f0e2a0d MORTEVIELLE: Remove remaining macros, start refactoring menus, modify the way _cfiphBuffer is read/written 2013-07-29 01:58:03 +02:00
Strangerke
1b2adafefa MORTEVIELLE: Use heap allocation in GfxSurface::decode, remove one use of swap 2013-07-28 23:35:26 +02:00
Strangerke
0b8db36af5 MORTEVIELLE: Remove another use of _mem 2013-07-27 00:08:56 +02:00
Strangerke
8009b2ebd8 MORTEVIELLE: Remove another use of _mem 2013-07-26 13:10:54 +02:00
Strangerke
db10ddace4 MORTEVIELLE: Use a specific buffer instead of _mem for noise5 file 2013-07-25 15:47:31 +02:00
Strangerke
8e2fe73afa MORTEVIELLE: Use a specific buffer instead of _mem for the animations 2013-07-25 10:32:21 +02:00
Strangerke
e86ec8bc81 MORTEVIELLE: Use variable size for _rightFramePict in order to handle the different sizes of the Amiga and Atari versions 2013-07-25 10:24:25 +02:00
Strangerke
51f6966656 MORTEVIELLE: Use a specific buffer instead of _mem for the right frame 2013-07-25 10:10:09 +02:00
Strangerke
31dffa00e0 MORTEVIELLE: Remove the check on German for the intro filename by using an alternate filename in loading code 2013-07-25 09:59:25 +02:00
Strangerke
3f191e8f0f MORTEVIELLE: Fix the German 2nd intro screen (original bug) 2013-07-25 09:49:43 +02:00
Strangerke
eb998776ac MORTEVIELLE: Fix box height when searching 2013-07-25 00:50:08 +02:00
Strangerke
11df173292 MORTEVIELLE: Remove unused code from the original compression scheme 2013-07-24 18:24:28 +02:00
Strangerke
91ed517332 MORTEVIELLE: Move Current Picture out of _mem buffer, some renaming 2013-07-24 18:22:35 +02:00
Strangerke
9bbfd7f628 MORTEVIELLE: Start working on displayPicture, misc renaming and refactoring 2013-07-24 15:16:56 +02:00
Strangerke
d5a6c9e4ab MORTEVIELLE: Remove useless define 2013-07-24 13:16:28 +02:00
Strangerke
06e57dd53b MORTEVIELLE: Remove useless constant, rename another one 2013-07-24 12:30:58 +02:00
Strangerke
3573929625 MORTEVIELLE: Give a better name to kAdrDecBuffer 2013-07-23 17:19:16 +02:00
Strangerke
03e32ca318 MORTEVIELLE: Get rid of phaz, Fix an uninitialized variable in setRandomPresenceRoom9 2013-07-23 15:03:47 +02:00
Strangerke
95ade596a1 MORTEVIELLE: Renaming fields and functions related to the number of answers per character 2013-07-23 10:51:42 +02:00
Strangerke
be886b4e38 MORTEVIELLE: Improve question cheat in debugger 2013-07-23 10:44:33 +02:00
Strangerke
de3566e82e MORTEVIELLE: Some more renaming 2013-07-23 10:18:08 +02:00
Strangerke
877fc1f8b9 MORTEVIELLE: Clarify a part of taffich 2013-07-23 09:41:59 +02:00
Strangerke
dcdf68b0a6 MORTEVIELLE: Some more renaming 2013-07-23 09:31:47 +02:00