118855 Commits

Author SHA1 Message Date
Strangerke
085847df18 TRECISION: consistantly use int16 for panels, rename near1 and near2 into nearPanel1 and nearPanel2 2021-05-29 21:25:00 +01:00
Strangerke
f9e3287693 TRECISION: Fix a check for null light 2021-05-29 21:25:00 +01:00
Filippos Karapetis
8083c9435e TRECISION: Disallow saving and loading during the intro
Prevents the creation of an invalid autosave, created before the game
has been fully initialized
2021-05-29 21:25:00 +01:00
Strangerke
7b4de1e6fb TRECISION: One more review of the includes 2021-05-29 21:25:00 +01:00
Strangerke
63dc1fc7e5 TRECISION: end of inc/dec operand harmonization, fix function comment header format 2021-05-29 21:24:59 +01:00
Strangerke
6bcae873cb TRECISION: Start to harmonize the use of increment/decrement operation when it doesn't make a difference - systematically use ++foobar 2021-05-29 21:24:59 +01:00
Strangerke
0b16761f7c TRECISION: Remove a useless include 2021-05-29 21:24:59 +01:00
Filippos Karapetis
0f3bc23d82 TRECISION: Remove the unused _actionLen array 2021-05-29 21:24:59 +01:00
Filippos Karapetis
31f51e0a8f TRECISION: Refactor mouse movement checking 2021-05-29 21:24:58 +01:00
Filippos Karapetis
3a89f5d1fe TRECISION: Cleanup, const correctness 2021-05-29 21:24:58 +01:00
Filippos Karapetis
f4c473e106 TRECISION: Use Common::String in showInventoryName() 2021-05-29 21:24:58 +01:00
Filippos Karapetis
3a6e03c280 TRECISION: Cleanup AnimTypeManager 2021-05-29 21:24:58 +01:00
Filippos Karapetis
6390587914 TRECISION: Rename Smacker audio toggling functions. Some cleanup 2021-05-29 21:24:58 +01:00
Filippos Karapetis
cc48935153 TRECISION: Move the intro queuing code in a more appropriate place 2021-05-29 21:24:57 +01:00
Filippos Karapetis
8b853a2e6c TRECISION: Remove the showIconName event 2021-05-29 21:24:57 +01:00
Filippos Karapetis
b7d47aa369 TRECISION: Merge duplicate code 2021-05-29 21:24:57 +01:00
Filippos Karapetis
a80de16ee5 TRECISION: Obtain mouse coordinates directly 2021-05-29 21:24:57 +01:00
Strangerke
8a0a71dbab TRECISION: Remove the use of fabs() in dist2D/3D 2021-05-29 21:24:57 +01:00
Strangerke
4e79dc5199 TRECISION: Replace float direct comparisons by a new function 2021-05-29 21:24:56 +01:00
Filippos Karapetis
a86367a92d TRECISION: Const correctness 2021-05-29 21:24:56 +01:00
Filippos Karapetis
60debe4466 TRECISION: Const correctness 2021-05-29 21:24:56 +01:00
Filippos Karapetis
29fda8bad0 TRECISION: Add missing override keyword 2021-05-29 21:24:56 +01:00
Filippos Karapetis
56270d4336 TRECISION: Fix closing the Egyptian gods wheel puzzle
A regression from a3d363fedc87216f2873fc88cbca3432c7bb6a49
2021-05-29 21:24:56 +01:00
Filippos Karapetis
9a0610711d TRECISION: Remove the changeRoom event 2021-05-29 21:24:55 +01:00
Filippos Karapetis
581364f06f TRECISION: Fix mouse cursor disappearing after the breaking news video 2021-05-29 21:24:55 +01:00
Filippos Karapetis
c147f30ccc TRECISION: Fix crash when opening Ruby's safe 2021-05-29 21:24:55 +01:00
Filippos Karapetis
7bf1e105c3 TRECISION: Bugfix for refreshObject()
Fixes the room objects in the prison, after trapping the guard
2021-05-29 21:24:55 +01:00
Filippos Karapetis
f2b4a07e5a TRECISION: Refresh the object sort table after a full screen video
Fixes graphics glitches after full motion videos. A regression from
a3d363fedc87216f2873fc88cbca3432c7bb6a49
2021-05-29 21:24:54 +01:00
Filippos Karapetis
c9244ac183 TRECISION: Fix Codacy issues 2021-05-29 21:24:54 +01:00
Filippos Karapetis
8476747ede TRECISION: Remove references to sound IDs in the audio code
These were only used by stop(), which is actually unused
2021-05-29 21:24:54 +01:00
Filippos Karapetis
6e3473a2b7 TRECISION: Remove unused events
These events are not used by the engine code or game scripts, so they
are dead code which can be safely removed
2021-05-29 21:24:54 +01:00
Filippos Karapetis
203d4818be TRECISION: Improve mouse responsiveness
We now process only the mouse button up events, and immediately clear
them, which improves mouse responsiveness. The relevant static
variables that were used to track inventory refresh changes have been
moved to TrecisionEngine. Also, removed some mouse related scheduled
events and call the corresponding functions directly
2021-05-29 21:24:54 +01:00
Filippos Karapetis
c7cc235e29 TRECISION: Simplify inventory moving left/right 2021-05-29 21:24:53 +01:00
Filippos Karapetis
e49abd0f0c TRECISION: Fix loading from the launcher 2021-05-29 21:24:53 +01:00
Filippos Karapetis
3db90c3546 TRECISION: Remove initScript()
The scripts initialized within that function are loaded from data.nl
in loadAll(), so this seems to be a leftover debug function
2021-05-29 21:24:53 +01:00
Filippos Karapetis
4cfe5365de TRECISION: Use the new event wrappers, remove the quit event 2021-05-29 21:24:53 +01:00
Filippos Karapetis
873644ffd4 TRECISION: Use the new event wrappers, remove the start/quit events 2021-05-29 21:24:52 +01:00
Filippos Karapetis
11d064fc6c TRECISION: Use the new event wrappers 2021-05-29 21:24:52 +01:00
Filippos Karapetis
7b8671d04c TRECISION: Fix the parameter names of startCharacterAction() 2021-05-29 21:24:52 +01:00
Filippos Karapetis
e02888e37e TRECISION: Add wrappers for some game events
This makes the code that uses these events more readable
2021-05-29 21:24:52 +01:00
Filippos Karapetis
1c322c5dde TRECISION: Fix memory leak with _stepLeftStream and _stepRightStream 2021-05-29 21:24:52 +01:00
Filippos Karapetis
6b34141e77 TRECISION: Whitespace fixes 2021-05-29 21:24:51 +01:00
Filippos Karapetis
f944214240 TRECISION: Remove dead code
This code is actually overwritten by the calls to setupAltRoom() and
mouseOperate(), which places Joshua at the correct position in room 21
(platforms), i.e. below the grating instead of outside the door.
Thanks to Strangerke for his cooperation on this :)
2021-05-29 21:24:51 +01:00
Strangerke
ab2bebda6a TRECISION: Simplify a couple of checks 2021-05-29 21:24:51 +01:00
Filippos Karapetis
8931782996 TRECISION: Remove the setRoom() wrapper 2021-05-29 21:24:51 +01:00
Filippos Karapetis
e1ad7c1318 TRECISION: Remove waitEndFading() 2021-05-29 21:24:51 +01:00
Filippos Karapetis
e5eca4a84f TRECISION: Remove unintentional switch fallthrough
It was a bug which sometimes resulted in both the left and the right
step sound to be played
2021-05-29 21:24:50 +01:00
Filippos Karapetis
9e67c95a69 TRECISION: Add some missing DisposeAfterUse flags 2021-05-29 21:24:50 +01:00
Filippos Karapetis
8a04137fb0 TRECISION: Refactor the sound playing code
The following changes have been made:
- Fade in/out functionality has been removed (it was never really used
  properly)
- Removed references to audio streams - they are disposed after use now
- Removed the room sound list - only 4 different sounds are actually
  played simultaneously
2021-05-29 21:24:50 +01:00
Strangerke
3857501467 TRECISION: Fix syncGameStream for v104 savegames 2021-05-29 21:24:50 +01:00