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
34b59256fc
LAB: Replace g_system by _system
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
f7395ba0ab
LAB: Rewrite the action message functionality (_doNotShowMessage)
2015-12-23 21:43:16 +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
be4c436dca
LAB: Move event update functions out of updateMusic
2015-12-23 21:35:34 +01:00
Strangerke
fa222f0ca8
LAB: Make string check more readable, remove a useless c_str()
2015-12-23 21:35:32 +01:00
Strangerke
2eeb027604
LAB: Revert previous commit as suggested by wjp
2015-12-23 21:35:32 +01:00
Strangerke
eba44d3094
LAB: Close _curBitmap before deleting it
2015-12-23 21:35:32 +01:00
Strangerke
b53735ba06
LAB: Constify some parameters
2015-12-23 21:35:32 +01:00
Strangerke
cff1f99b26
LAB: Set a default to the second parameter of readPict
2015-12-23 21:35:32 +01:00
Strangerke
4dfc428bac
LAB: Some cleanup and refactoring
2015-12-23 21:35:32 +01:00
Strangerke
cc039ef113
LAB: Fix crash in intro
2015-12-23 21:35:32 +01:00
Strangerke
7e047b45b7
LAB: Fix a delete[] pointed out by eriktorbjorn
2015-12-23 21:35:31 +01:00
Strangerke
ae9c2fea51
LAB: Replace char* by Common::String in several functions
2015-12-23 21:35:31 +01:00
Strangerke
a4d3bda5c1
LAB: Use an array of Common::Strings instead of bytes in Action
2015-12-23 21:35:31 +01:00
Strangerke
eaa6f3bd01
LAB: Fix some GCC warnings
2015-12-23 21:35:30 +01:00
Strangerke
ee4e67a731
LAB: Move and improve function comments to header in DispMan
2015-12-23 21:35:30 +01:00
Strangerke
b9326e3850
LAB: Refactor some DispMan functions to use Common::String
2015-12-23 21:35:30 +01:00
Strangerke
a2097d2a2e
LAB: Get rid of strcat by using Common::String
2015-12-23 21:35:30 +01:00
Strangerke
1d9e3cd561
LAB: Remove useless variable
2015-12-23 21:35:30 +01:00
Strangerke
3fcd3c1526
LAB: Avoid memory leaks with fonts
2015-12-23 21:35:30 +01:00
Filippos Karapetis
3e8eaa2c35
LAB: Use Common::String for strings, removing a ton of memory leaks
...
Also, add a method to properly free room views
2015-12-23 21:35:27 +01:00
D G Turner
a7afc80e18
LAB: Avoid variable shadowing compiler warning.
2015-12-23 21:34:09 +01:00
Filippos Karapetis
c5528a631d
LAB: Handle some differences of the Amiga version
...
The Amiga version is still not working, as the CONTROL and INV files
are missing, and the format of the font files is different
2015-12-23 21:34:09 +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
Filippos Karapetis
318dc59382
LAB: Make setUpScreens() a bit easier to read
2015-12-23 21:34:08 +01:00
Strangerke
25509777aa
LAB: Get rid of flowTextScaled
2015-12-23 21:34:07 +01:00
Strangerke
054a7a1e19
LAB: Use Common::Rect in functions related to flowText (WIP)
2015-12-23 21:34:07 +01:00
Strangerke
f932f39214
LAB: reduce a variable scope, remove useless code
2015-12-23 21:34:07 +01:00
Strangerke
83126e84ee
LAB: Make the use of nullptr consistent through the engine
2015-12-23 21:34:06 +01:00
Strangerke
3f1bb66959
LAB: Fix memory leak
2015-12-23 21:34:06 +01:00
Strangerke
75d1a3a22a
LAB: Fix freePict as pointed by eriktorbjorn
2015-12-23 21:34:05 +01:00
Strangerke
69294eccb0
LAB: Some renaming in DisplayMan
2015-12-23 21:34:05 +01:00
Strangerke
e0de03463e
LAB: Use strlen to compute text length instead of a difference between start and end address. Some refactoring.
2015-12-23 21:34:05 +01:00
Strangerke
21e6f40301
LAB: Fix a regression related to random number generation, some renaming
2015-12-23 21:34:04 +01:00
Eugene Sandulenko
79eec20361
LAB: Reduced variable scope. Renames
2015-12-23 21:34:04 +01:00
Eugene Sandulenko
aa718e4c84
LAB: Variable rename
2015-12-23 21:34:04 +01:00
Strangerke
ad54a75b85
LAB: Add _vm to Image class
2015-12-23 21:34:03 +01:00
Filippos Karapetis
2332fb617c
LAB: Rename gadget to button
2015-12-23 21:34:03 +01:00
Filippos Karapetis
40b16afcab
LAB: Get rid of _unstoppableSoundEffect
...
_loopSoundEffect is used for the exact same purpose
2015-12-23 21:34:02 +01:00
Strangerke
7c1401264c
LAB: Remove interface.h, get rid of a lot of useless defines
2015-12-23 21:34:02 +01:00
Strangerke
c837e67070
LAB: Move interface functions to EventMan
2015-12-23 21:34:02 +01:00
Strangerke
47368c157e
LAB: Review Music declaration, some refactoring and renaming
2015-12-23 21:34:02 +01:00
Strangerke
aef304a83b
LAB: Some renaming and refactoring in special.cpp
2015-12-23 21:34:01 +01:00
Strangerke
a01f068969
LAB: Merge transitions in dispman
2015-12-23 21:34:01 +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