69 Commits

Author SHA1 Message Date
Filippos Karapetis
b2ec7acbf7 LAB: Fix waiting for sounds embedded in animations
A regression of 75d1385c8d1ba61b5740a0b43966d3c2f111440d
2016-05-17 11:22:27 +03:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Strangerke
fb34336863 LAB: Do not crash the DOS version in case of missing file as some files are known to be missing in the original 2016-01-25 00:21:28 +01:00
Filippos Karapetis
280bd0f7c2 LAB: Read the header of DIFF files when opening them 2016-01-14 23:41:34 +02:00
Filippos Karapetis
e3b9f726a1 LAB: Remove superfluous class variables 2016-01-08 02:01:28 +02:00
Filippos Karapetis
b0a029cd64 LAB: Remove superfluous mouseShow() calls in diffNextFrame()
This fixes the incorrectly visible cursor in the intro
2015-12-27 22:47:44 +02:00
Filippos Karapetis
c5f5fbc208 LAB: Refactor the music code 2015-12-27 21:16:43 +02:00
Filippos Karapetis
e4745a0b20 LAB: Remove incorrect mouse cursor hiding at the start of every anim
This resulted in having the mouse cursor flash in scenes with animation
(e.g. the Surreal Maze)
2015-12-27 14:36:00 +02:00
Strangerke
07b554b847 LAB: Add an access function to make _headerData a private member of Anim 2015-12-26 13:53:11 +01:00
Filippos Karapetis
d1b5d41005 LAB: Clean up sound effect looping, starting and stopping code 2015-12-26 12:45:48 +02:00
Willem Jan Palenstijn
60657f9fd2 LAB: Simplify Anim output to buffer 2015-12-24 16:53:32 +01:00
Willem Jan Palenstijn
d98d39c315 LAB: Move dispBitMap to Anim 2015-12-24 16:51:02 +01:00
Willem Jan Palenstijn
dacbf9881c LAB: Make _dispBitmap handling more explicit 2015-12-24 16:16:48 +01:00
Willem Jan Palenstijn
442c1538a2 LAB: Clean up diff chunk handling 2015-12-24 16:02:22 +01:00
Strangerke
b67b39038b LAB: Remove duplicate code in a switch 2015-12-24 00:08:41 +01:00
Filippos Karapetis
9dae9eb811 LAB: Implement the scroll buffer of doScrollWipe() and doScrollBounce()
This was left out from previous refactoring. Also, simplify
doScrollBounce()
2015-12-23 21:43:17 +01:00
Strangerke
c9049f2329 LAB: Remove left-over long size specifiers 2015-12-23 21:43:17 +01:00
Strangerke
34b59256fc LAB: Replace g_system by _system 2015-12-23 21:43:16 +01:00
Strangerke
966f82d82e LAB: Clarify a bit the use of header in Anim 2015-12-23 21:35:35 +01:00
Strangerke
50a6cf12ef LAB: Add a safeguard on numChunks 2015-12-23 21:35:35 +01:00
Strangerke
8a3ff50d5c LAB: Remove _drawBitMap, make diffNextFrame a bit more readable 2015-12-23 21:35:34 +01:00
Strangerke
8c9d65b8cb LAB: Rename a member of Anim 2015-12-23 21:35:34 +01:00
Strangerke
be4c436dca LAB: Move event update functions out of updateMusic 2015-12-23 21:35:34 +01:00
Strangerke
28c74aed05 LAB: More work on the comments 2015-12-23 21:35:30 +01:00
Filippos Karapetis
b1fc785225 LAB: Use templates for the undiff functions 2015-12-23 21:34:08 +01:00
Strangerke
f452834f70 LAB: Remove unused variables in DIFFHeader and BitMap 2015-12-23 21:34:08 +01:00
Filippos Karapetis
bc25b6be55 LAB: Change the graphics and audio code to use Common::File directly 2015-12-23 21:34:08 +01:00
Strangerke
eb6854e2c7 LAB: Add a short delay when changing screen so that the text is readable when changing screens 2015-12-23 21:34:07 +01:00
Strangerke
5ed11d721c LAB: Verify the appropriate use of parenthesis in if statements 2015-12-23 21:34:06 +01:00
Strangerke
83126e84ee LAB: Make the use of nullptr consistent through the engine 2015-12-23 21:34:06 +01:00
Filippos Karapetis
e994c90d9b LAB: Simplify the crumb wait time code 2015-12-23 21:34:03 +01:00
Filippos Karapetis
231dda2ba9 LAB: Fix regression in animation code in looping animations
This fixes Daedalus' flight animation in the ending cutscene
2015-12-23 21:34:02 +01:00
Filippos Karapetis
ceb5ef18e5 LAB: Get rid of a superfluous global variable 2015-12-23 21:34:02 +01:00
Filippos Karapetis
ff43ec7e86 LAB: Now that timing works correctly, disable some annoying delays 2015-12-23 21:34:02 +01:00
Filippos Karapetis
452c20ab8a LAB: Get rid of the rest of the custom time delay functions 2015-12-23 21:34:01 +01:00
Filippos Karapetis
1b0a7db0b6 LAB: Get rid of getTime(), readBlock() and getRandom()
Also, simplify some time-related functions
2015-12-23 21:34:01 +01:00
Strangerke
7bb45a8eaa LAB: Move timing functions to the utility class 2015-12-23 21:34:01 +01:00
Filippos Karapetis
e0d546a4eb LAB: Remove extra whitespace 2015-12-23 21:34:00 +01:00
Filippos Karapetis
aa7ec3654d LAB: Refactor readPictToMem()
This fixes crashes in the teleporter and the journal, and plugs several
memory leaks
2015-12-23 21:34:00 +01:00
Filippos Karapetis
9c94d140db LAB: Simplify bitmap flags 2015-12-23 21:34:00 +01:00
Strangerke
f59ceebad9 LAB: Move readBlock to the utility class 2015-12-23 21:33:59 +01:00
Filippos Karapetis
e7a0e05301 LAB: Merge playDiff() into readDiff() 2015-12-23 21:33:59 +01:00
Eugene Sandulenko
cf020db741 LAB: Converted DisplayMan::_dispBitMap to a pointer. 2015-12-23 21:33:58 +01:00
Eugene Sandulenko
9015cf72a3 LAB: Reduced header dependency: interface.h 2015-12-23 21:33:57 +01:00
Eugene Sandulenko
66f2935a22 LAB: Reduced header dependency: dispman.h, eventman.h 2015-12-23 21:33:57 +01:00
Eugene Sandulenko
5fad5cece3 LAB: Reduced header dependency: labsets.h, utils.h 2015-12-23 21:33:57 +01:00
Eugene Sandulenko
d8e01fe23a LAB: Reduce header dependency from music.h 2015-12-23 21:33:56 +01:00
Eugene Sandulenko
eccb852749 LAB: Removed unnecessary includes 2015-12-23 21:33:56 +01:00
Strangerke
2d0fab7f4c LAB: Use // for comments 2015-12-23 21:33:55 +01:00
Filippos Karapetis
21fc36bfad LAB: Get rid of _isBM 2015-12-23 21:33:55 +01:00