41845 Commits

Author SHA1 Message Date
Filippos Karapetis
7a7a25c91d LAB: The maxHeight parameter of readPict() is no longer used 2015-12-24 01:32:22 +02:00
Strangerke
b67b39038b LAB: Remove duplicate code in a switch 2015-12-24 00:08:41 +01:00
Filippos Karapetis
7c33862a09 LAB: The second parameter of fade() is always 0 2015-12-24 00:44:16 +02:00
Willem Jan Palenstijn
1d2f90f040 LAB: Fix build error on AmigaOS4 2015-12-23 23:06:10 +01:00
Filippos Karapetis
a72ab2be22 MADS: Phantom: Properly initialize scene 410
Thanks to criezy for spotting this one
2015-12-23 23:19:19 +02:00
Filippos Karapetis
35f53bb522 LAB: Error out on unused opcodes
This also fixes a warning
2015-12-23 23:07:40 +02:00
Filippos Karapetis
9d7a2f4e7f LAB: Fix usage of drawMessage() with empty messages 2015-12-23 23:01:17 +02:00
Filippos Karapetis
70ec11d260 LAB: Change the direction and map door defines into enums 2015-12-23 22:59:59 +02:00
Willem Jan Palenstijn
10d9d8dee5 LAB: Fix warnings by adding consts 2015-12-23 21:51:39 +01:00
Willem Jan Palenstijn
ff93e55afd Merge pull request #636 from sev-/lab
This is a pull request for the game The Labyrinth of Time. This game is
currently available on www.wyrmkeep.com and on GOG.com. The game should
be completable: it was completable a month ago and we did regularly
regression testing. All the work has been based on sources kindly
provided by Wyrmkeep.

The DOS and the Windows versions are supported by this engine.

This is a manual merge of the PR, with some history fixups.
2015-12-23 21:43:35 +01:00
Filippos Karapetis
f9641a6d66 LAB: Show a more descriptive message when save/restore is aborted 2015-12-23 21:43:17 +01:00
Filippos Karapetis
d30ee82cdb LAB: Use camelCase for a variable name 2015-12-23 21:43:17 +01:00
Filippos Karapetis
52c7fcbfe5 LAB: Rename overlayRect() to checkerboardEffect() 2015-12-23 21:43:17 +01:00
Filippos Karapetis
5327b6f545 LAB: Use byte instead of char in overlayRect()
This matches the idea that colors are in range of 0 - 255. Thanks to
LordHoto
2015-12-23 21:43:17 +01:00
Filippos Karapetis
60f7849c20 LAB: Improve the palette assignment in writeColorRegs()
Thanks to LordHoto
2015-12-23 21:43:17 +01:00
Filippos Karapetis
c66d5eca3a LAB: setAmigaPal() is always using 16 colors 2015-12-23 21:43:17 +01:00
Filippos Karapetis
07aec19a06 LAB: Also mention Terra Nova Development in the engine copyright message 2015-12-23 21:43:17 +01:00
Filippos Karapetis
29d85c8d50 LAB: Use int in for loops, instead of uint16 2015-12-23 21:43:17 +01:00
Filippos Karapetis
b3a19cf75e LAB: Show the correct number of parameters in find_action 2015-12-23 21:43:17 +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
2f1506edec LAB: Replace do..while by while statements in resource 2015-12-23 21:43:16 +01:00
Strangerke
34b59256fc LAB: Replace g_system by _system 2015-12-23 21:43:16 +01:00
Strangerke
e8edff85f3 LAB: Synchronize function definition in Intro 2015-12-23 21:43:16 +01:00
Filippos Karapetis
8de38a8d10 LAB: Greatly simplify doScrollBlack() using scrollDisplayY()
This also fixes a crash when crossing the street
2015-12-23 21:43:16 +01:00
Filippos Karapetis
7a81e03b25 LAB: Prevent the Image destructor from deleting external scroll buffers 2015-12-23 21:43:16 +01:00
Filippos Karapetis
9d53245f73 LAB: Get rid of _waitTillFinished
There is no point waiting for looping sound effects to end
2015-12-23 21:43:16 +01:00
Filippos Karapetis
07da047fa1 LAB: Fix the find_action command 2015-12-23 21:43:16 +01:00
Filippos Karapetis
c855cd46df LAB: Extend the scene_resources command and add the find_action command 2015-12-23 21:43:16 +01:00
Filippos Karapetis
f7395ba0ab LAB: Rewrite the action message functionality (_doNotShowMessage) 2015-12-23 21:43:16 +01:00
Filippos Karapetis
333d553716 LAB: Add a console, with two new commands (scene and scene_resources) 2015-12-23 21:43:16 +01:00
Filippos Karapetis
ced5b677f6 LAB: Add enums for action types, rule types ad rule actions 2015-12-23 21:35:35 +01:00
Filippos Karapetis
f59ccf534c LAB: Get rid of the _doNotDrawMessage hack (from the original)
This is actually a nasty hack in the original to avoid duplicate
messages, but it ended up hiding some game messages. This hack isn't
really necessary at all for game functionality, so it has been
removed, without any notable side-effects
2015-12-23 21:35:35 +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
040fa45cf1 LAB: Fix header define for Anim 2015-12-23 21:35:34 +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
7380ddf400 LAB: Change RuleList to a Common::List<Rule> as suggested by wjp 2015-12-23 21:35:34 +01:00
Strangerke
f3db3ba305 LAB: Remove deletes from mainGameLoop
Those are already handled properly in the engine destructor, as pointed by eriktorbjorn
2015-12-23 21:35:34 +01:00
Strangerke
db99a31acc LAB: Fix stupid regression 2015-12-23 21:35:34 +01:00
Strangerke
0823ebb36f LAB: Reduce the use of redirections in Resource 2015-12-23 21:35:34 +01:00
Strangerke
503b633866 LAB: Remove useless casts and dead code 2015-12-23 21:35:34 +01:00
Strangerke
108cbce3b5 LAB: Remove useless assignments 2015-12-23 21:35:34 +01:00
Strangerke
02b606e375 LAB: Avoid to delete _screenImage->_imageData, which causes a crash 2015-12-23 21:35:34 +01:00
Strangerke
26c48305b5 LAB: Add a couple of safeguards 2015-12-23 21:35:34 +01:00
Strangerke
e88d09d2ec LAB: Fix delete in previous commit 2015-12-23 21:35:33 +01:00
Strangerke
df05be466e LAB: Fix readString when encrypted strings are stored with a wrong size and multiple \0 2015-12-23 21:35:33 +01:00
Strangerke
137e12bf95 LAB: Fix regression in intro 2015-12-23 21:35:33 +01:00