Commit Graph

522 Commits

Author SHA1 Message Date
Filippos Karapetis
3097ac8f1e LAB: Change condition defines into an enum 2015-12-24 12:36:26 +02:00
Filippos Karapetis
f018b44ff8 LAB: Fix loading of journal text 2015-12-24 12:29:23 +02:00
Filippos Karapetis
4b3e671de5 LAB: Merge flowTextToMem() inside flowText() 2015-12-24 12:27:56 +02:00
Filippos Karapetis
7216bddd56 LAB: Merge setPen() into rectFill() 2015-12-24 12:08:51 +02:00
Filippos Karapetis
05973b9b41 LAB: Get rid of a superfluous variable 2015-12-24 11:59:03 +02:00
Strangerke
1206fe22b8 LAB: Fix out of bound in writeColorRegs 2015-12-24 08:30:50 +01:00
Strangerke
746f494c85 LAB: Fix bug in doTransWipe 2015-12-24 08:10:30 +01:00
Strangerke
9e048bc207 LAB: Stop adding useless garbage at the end of the savegames 2015-12-24 08:03:04 +01:00
Strangerke
5b3380c6e6 LAB: Initialize some variables in constructor 2015-12-24 07:47:46 +01:00
Strangerke
ba243ea587 LAB: Handle intro font in intro constructor and destructor 2015-12-24 02:03:00 +01:00
Strangerke
f4bc3c0ab4 LAB: Rename main intro function 2015-12-24 01:47:53 +01:00
Strangerke
887add323b LAB: Fix unsafe use of boolean 2015-12-24 01:44:22 +01:00
Strangerke
aa104040d4 LAB: Simplify the calls to doPictText 2015-12-24 01:42:21 +01:00
Strangerke
0bf89c1eec LAB: Cleanup the way shouldQuit is called 2015-12-24 01:21:40 +01:00
Strangerke
997150e76e LAB: Change the initial valueof _screenBytesPerPage, use it in Journal functions 2015-12-24 01:12:39 +01:00
Filippos Karapetis
6f6c92d470 LAB: Prevent the Image destructor from deleting the drawing buffer 2015-12-24 01:32:22 +02:00
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
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
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