Commit Graph
681 Commits
Author SHA1 Message Date
Filippos Karapetis 7aafcaca1a LAB: Move music reset code into a separate function 2016-01-14 23:41:28 +02:00
Filippos Karapetis 49a45a21ce LAB: The parameter of doMap() isn't needed 2016-01-14 23:41:27 +02:00
Filippos Karapetis d76fe85af4 LAB: Prevent duplicate processing of input 2016-01-11 01:50:11 +02:00
Filippos Karapetis 38df43fe55 LAB: Prevent excessive screen updates when checking for events 2016-01-11 01:50:10 +02:00
Filippos Karapetis 31d47d6be2 LAB: Bugfixes for the lowres DOS version
The lowres DOS version should be working properly now
2016-01-08 02:01:28 +02:00
Filippos Karapetis e3b9f726a1 LAB: Remove superfluous class variables 2016-01-08 02:01:28 +02:00
Filippos Karapetis 5b5efd4cbe LAB: Use the same text rect in monitors for DOS and Windows versions
The Windows rectangle looks better than the DOS one, with some small
spacing on the top left. This is a minor enhancement, and it does help
to make the monitors slightly better. Also, this helps us clean up the
monitor code a bit
2016-01-08 02:01:27 +02:00
Torbjörn Andersson a330d993ae LAB: Use cursor manager to set, show and hide the cursor
While not strictly necessary, without this the debug console will
mess up the cursor on closing, because it doesn't know what cursor
to restore.
2016-01-06 11:19:53 +01:00
Willem Jan Palenstijn 15bbcff786 LAB: Fix switching between texts in monitor 2016-01-05 23:00:06 +01:00
Willem Jan Palenstijn 1eed77c376 LAB: Fix end-of-text detection in monitor 2016-01-05 22:59:14 +01:00
Willem Jan Palenstijn 9cb7535e6d LAB: Ignore clicks in empty region in monitor
Regression from e71f28d0ba
2016-01-05 22:05:23 +01:00
Filippos Karapetis b72c02bad4 LAB: Simplify and clean up the intro code 2016-01-05 21:47:31 +02:00
Torbjörn Andersson e5189bad67 LAB: Initialise _displayBuffer to silence Valgrind warning
Otherwise, its contents will be undefined on the first screen
update. That could probably be fixed by introducing some sort of
"dirty rect" mechanism, but I don't think it's a bad idea to
initialise it regardless.
2015-12-31 10:58:09 +01:00
Strangerke 9834d37b33 LAB: Reduce the scope of some variables 2015-12-29 13:31:34 +01:00
Strangerke b580d2d1d0 LAB: Simplify code in doCloseUp 2015-12-29 12:47:37 +01:00
Strangerke 583f86be27 LAB: Simplify code in perFlipButton 2015-12-29 12:32:09 +01:00
Strangerke 0ca10a7d40 LAB: Remove two other unused variables 2015-12-29 10:48:26 +01:00
Strangerke e55777aca0 LAB: Remove unused variable 2015-12-29 10:45:39 +01:00
Torbjörn Andersson 9ec9bca25b LAB: Fix small getFont() memory leak 2015-12-28 11:05:36 +01:00
Torbjörn Andersson fe47fec521 LAB: Free the remaining parts of _moveButtonList and _invButtonList
We can't use freeButtonList(), because apparently some of the button
images are shared between the two lists. At least, that's how I
understand it.
2015-12-28 11:05:36 +01:00
Filippos Karapetis f6e42a7282 LAB: Simulate events by setting an unused key 2015-12-28 01:59:17 +02:00
Filippos Karapetis 5c75ac9898 LAB: Fix loading from the GMM and warping to rooms from the console 2015-12-28 01:04:28 +02:00
Filippos Karapetis 3977a7ffa1 LAB: Add support for saving and loading games from the GMM 2015-12-27 23:22:54 +02:00
Filippos Karapetis 4548cbddb5 LAB: Add support for loading games from the launcher 2015-12-27 23:07:41 +02:00
Filippos Karapetis bb34bc94ec LAB: Fix the shortcut keys for the journal buttons 2015-12-27 22:55:38 +02:00
Filippos Karapetis a7959a4ed4 LAB: Remove superfluous mouse show/hide calls
Our mouse cursor is drawn in a separate layer, so we can draw on the
screen without needing to hide it beforehand
2015-12-27 22:50:09 +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 ab8382418d LAB: Do not pause the background music when a sound effect is played 2015-12-27 21:42:51 +02:00
Filippos Karapetis 70822b32b0 LAB: Some more cleanup to the music code 2015-12-27 21:42:05 +02:00
Filippos Karapetis f0ee57b6db LAB: Remove now unused define 2015-12-27 21:31:10 +02:00
Filippos Karapetis f382321fb3 LAB: Reorder a function 2015-12-27 21:20:22 +02:00
Filippos Karapetis c5f5fbc208 LAB: Refactor the music code 2015-12-27 21:16:43 +02:00
Filippos Karapetis 29342b1331 LAB: Document usage of some opcodes and mark some unused ones 2015-12-27 21:13:09 +02:00
Strangerke d393674100 LAB: Allow to skip more efficiently the intro while the 2nd screen is displayed 2015-12-27 15:23:51 +01:00
Willem Jan Palenstijn a49ffcd87b LAB: Remove some unnecessary casts 2015-12-27 13:52:34 +01:00
Filippos Karapetis 662649319b LAB: Simplify fillBuffer() 2015-12-27 14:36:02 +02:00
Filippos Karapetis 764d261873 LAB: Unify the sound flags code for music and sound effects 2015-12-27 14:36:01 +02:00
Filippos Karapetis 684830082b LAB: Simplify resetMusic() 2015-12-27 14:36:01 +02:00
Filippos Karapetis e2d019f9d1 LAB: Rename _lastMusicRoom to _curRoomMusic 2015-12-27 14:36:00 +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
Filippos Karapetis bce260bb5f LAB: Get rid of _doReset
This resulted in calling resetMusic() twice
2015-12-27 14:36:00 +02:00
Willem Jan Palenstijn 86a593af09 LAB: Simplify check order 2015-12-27 13:34:50 +01:00
Strangerke e06252cda5 LAB: Init the mouse in the center of the screen 2015-12-27 11:30:56 +01:00
Strangerke c0e64a091a LAB: Review the variable types used in Special, reduce the scope of some variables 2015-12-27 11:20:54 +01:00
Strangerke 9bc8d25b02 LAB: Remove a useless assignment 2015-12-27 11:00:05 +01:00
Strangerke bc368c6967 LAB: Remove useless pragma 2015-12-27 01:30:00 +01:00
Strangerke 2bad773046 LAB: Use an enum for special room ids 2015-12-27 01:05:43 +01:00
Strangerke 3712befbd7 LAB: Remove unused defines 2015-12-27 00:46:41 +01:00
Filippos Karapetis 3215d14e82 LAB: Rename TilePuzzle to SpecialLocks, to better reflect its purpose
This class handles two different special locks, the tile puzzle and
the combination door
2015-12-27 01:42:45 +02:00
Willem Jan Palenstijn 428f9acdcf LAB: Revert functional change of cleanup commit
(7f2b69b75c)
2015-12-27 00:29:05 +01:00