Commit Graph
137148 Commits
Author SHA1 Message Date
Alex Bevilacqua 71e1afe2c4 ASYLUM: make a couple actor fields int32 2021-05-17 15:37:14 +02:00
Alex Bevilacqua 0ea5649869 ASYLUM: remove unused variable 2021-05-17 15:37:14 +02:00
Alex Bevilacqua ef991acd9e ASYLUM: Silence GCC Warnings 2021-05-17 15:37:14 +02:00
Alex Bevilacqua 0978aa14ab ASYLUM: actually save configuration changes to settings file 2021-05-17 15:37:13 +02:00
Alexander c51cd5dea9 ASYLUM: Attempt to fix a bug in Text::draw(int32, int32, TextCentering, ...) 2021-05-17 15:37:13 +02:00
Alexander b308839952 ASYLUM: Add detection entry for Russian version 2021-05-17 15:37:13 +02:00
Alex Bevilacqua 30b4f0b931 ASYLUM: fixed a bug in Actor::updateFinish()
We weren't checking the area flags and were running an actor reaction
immediately after the intro script completed.
2021-05-17 15:37:13 +02:00
Alex Bevilacqua 1d7ac2949e ASYLUM: fix some warnings found by eclipse 2021-05-17 15:37:13 +02:00
Alex Bevilacqua 3dc4f42062 ASYLUM: add a workaround for the cursor not remaining hidden during the intro speech 2021-05-17 15:37:13 +02:00
Littleboy 28363f844d ASYLUM: Reorganize SharedData
- Add accessors for most variables
 - Add stubs for set/getChapter2Data()
2021-05-17 15:37:13 +02:00
Littleboy 906cbe7a23 ASYLUM: Rename puzzles/data.h to puzzles/puzzledata.h 2021-05-17 15:37:12 +02:00
Littleboy 5aad67007b ASYLUM: Change SharedData into a class and move method implementations into cpp file 2021-05-17 15:37:12 +02:00
Littleboy e130e128b4 ASYLUM: Implement AsylumEngine::saveLoadWithSerializer() 2021-05-17 15:37:12 +02:00
Littleboy c78554d6d0 ASYLUM: Reorganize and document shared data
- Add saveLoadWithSerializer() stub to SharedData
2021-05-17 15:37:12 +02:00
Littleboy 5ba6a0605d ASYLUM: Correct usage of some shared data
- Add ambientFlags array
 - Update usage of ambientTicks array
 - Remove some now unused gameFlags related methods
2021-05-17 15:37:12 +02:00
Littleboy 361c52ef01 ASYLUM: Add data written checks when saving games 2021-05-17 15:37:12 +02:00
Littleboy f6fd9adc50 ASYLUM: Implement Actor::updateStatus12_Chapter2_Actor11() 2021-05-17 15:37:11 +02:00
Julien Templier e056a92862 ASYLUM: Remove unused member from SoundQueueItem
It was used in the original to check when to cleanup the sound queue
2021-05-17 15:37:11 +02:00
Julien Templier d4e5d66e59 ASYLUM: Implement Actor::updateStatus18_Chapter2_Actor11() 2021-05-17 15:37:11 +02:00
Julien Templier f6733c0cfb ASYLUM: Update actor distances functions 2021-05-17 15:37:11 +02:00
Julien Templier ed60255adf ASYLUM: Add delay in event loop in the intro 2021-05-17 15:37:11 +02:00
Julien Templier 82ff79f04c ASYLUM: Implement Actor::canInteract() 2021-05-17 15:37:11 +02:00
Julien Templier da7fd8c203 ASYLUM: Fix GCC warning in Screen::paletteFade() 2021-05-17 15:37:11 +02:00
Julien Templier 9746136ee3 ASYLUM: Fix palette fading corruption (visible in the cinematics menu when starting a video) 2021-05-17 15:37:10 +02:00
Julien Templier 6201a4cf9e ASYLUM: Implement more palette related functions
- Use Screen::setupPalette() in Video class instead of setting the palette directly
- Implement Screen::updatePalette()
- Cleanup usage of Screen::setupPalette()
2021-05-17 15:37:10 +02:00
Julien Templier 6475c3d9f9 ASYLUM: Implement Screen::paletteFade() 2021-05-17 15:37:10 +02:00
Julien Templier 86126add5f ASYLUM: Implement palette fading timer and related functions 2021-05-17 15:37:10 +02:00
Julien Templier fb8afdc6d6 ASYLUM: Palette and gamma functions update
- Identify dead code and remove unused parameters
- Rename several gamma and palette-relted functions
- Add stubs for palette fading functions
2021-05-17 15:37:10 +02:00
Julien Templier f453ab6da7 ASYLUM: Implement Actor::updateStatus15_Chapter2() 2021-05-17 15:37:10 +02:00
Julien Templier 188264b94f ASYLUM: Implement Actor::updateStatus15_Chapter2_Actor11() 2021-05-17 15:37:10 +02:00
Julien Templier 88d0d33464 ASYLUM: Cleanup Actor::updateStatus15_Chapter2_Player()
This function is only called for the current player and thus can be simplified
2021-05-17 15:37:09 +02:00
Julien Templier 6879945591 ASYLUM: Implement the missing part of Special::chapter2() 2021-05-17 15:37:09 +02:00
Julien Templier 96abeb1672 ASYLUM: Implement Actor::updateStatus15_Chapter2_Player() 2021-05-17 15:37:09 +02:00
Julien Templier 203e18669e ASYLUM: Implement Actor::updateStatus14_Chapter2() 2021-05-17 15:37:09 +02:00
Julien Templier 7c9a793a64 ASYLUM: Finish implementation of Scene::processUpdateList() 2021-05-17 15:37:09 +02:00
Julien Templier 1ba0c2a354 ASYLUM: Fix crash when initializing Board puzzles
The fixed size text buffer was too small to hold all the text for two of the puzzles. This replaces it with a Common::String
2021-05-17 15:37:09 +02:00
Julien Templier ba2addab8d ASYLUM: Finish implementation of AsylumEngine::restart() 2021-05-17 15:37:08 +02:00
Julien Templier 6b4f3435c0 ASYLUM: Remove Puzzle::reset() functions
- Recreate all puzzle instances on reset
- Clear shared data directly from the AsylumEngine::reset() function
2021-05-17 15:37:08 +02:00
Julien Templier 55a9a133da ASYLUM: Implement the rest of Actor::process() 2021-05-17 15:37:08 +02:00
Julien Templier cb241adfae ASYLUM: Fix credit text disappearing instead of fading out when at the top of the screen 2021-05-17 15:37:08 +02:00
Julien Templier db1ddf2b16 ASYLUM: Add the list of puzzles in the console command help message 2021-05-17 15:37:08 +02:00
Julien Templier c91086bee5 ASYLUM: Fix compilation with Visual Studio 2021-05-17 15:37:08 +02:00
Alexander 83cbf040a5 ASYLUM: Hive machine puzzle: add missing playSound() call and rename counters 2021-05-17 15:37:07 +02:00
Alexander fd3e63e95e ASYLUM: Hive machine puzzle: fix typo 2021-05-17 15:37:07 +02:00
Alexander 185aedd05b ASYLUM: Pipes puzzle: fix lamp indicators 2021-05-17 15:37:07 +02:00
Alexander defb533d1e ASYLUM: Pipes puzzle: replace log(x)/log(2) with Common::intLog2(x) 2021-05-17 15:37:07 +02:00
Alexander 55523032ce ASYLUM: Implement Hive control puzzle 2021-05-17 15:37:07 +02:00
Julien Templier 6a31a7406d ASYLUM: Add a set of functions to pass a GraphicResource* directly to Screen::draw()
This makes the drawing of text a lot faster since we don't have to decode
the font resource (and read each frame) for every character.
2021-05-17 15:37:07 +02:00
Julien Templier 901f032b77 ASYLUM: Fix debug drawing of zoomed mask 2021-05-17 15:37:07 +02:00
Julien Templier 015c1cfb92 ASYLUM: Fix valgrind problems reported by eriktorbjorn
- malloc/free problem in screen.cpp
- uninitialized variables (screenUpdateCount and lastScreenUpdate) usage in actor.cpp
2021-05-17 15:37:06 +02:00