Filippos Karapetis
c128f527b6
TRECISION: Fix handling of missing video files
2021-05-29 21:23:53 +01:00
Filippos Karapetis
3d3a37221c
TRECISION: Extend temp buffer for the Sphinx screen in the Zoo
2021-05-29 21:23:53 +01:00
Filippos Karapetis
7b31147cf7
TRECISION: Pass the background width and height to loadBackground()
...
All backgrounds have the same dimensions, but they are included in the
background data, so let's keep that information non-hardcoded
2021-05-29 21:23:53 +01:00
Filippos Karapetis
c316470caa
TRECISION: Refactor and simplify background videos
...
This removes the remaining usage of smkNextFrame() and _smkBuffer
2021-05-29 21:23:52 +01:00
Filippos Karapetis
16e3ca4e19
TRECISION: Refactor action frame drawing and Smacker closing
...
This involves the following:
- Rename video function parameters so that it's clear which ones
operate on animations, and which ones on animation slots
- Simplify stopSmkAnim() to work on animation slots, instead of
animations
- Refactor and simplify action animation drawing
2021-05-29 21:23:52 +01:00
Filippos Karapetis
01b0a8eb9f
TRECISION: Add a new method for surface blitting
2021-05-29 21:23:52 +01:00
Filippos Karapetis
03db0525d2
TRECISION: Start refactoring background image loading
2021-05-29 21:23:52 +01:00
Filippos Karapetis
cc6c73466f
TRECISION: Error out when _actionPointer is accessed
...
It's unallocated / uninitialized memory, so we need cases where it's
used
2021-05-29 21:23:52 +01:00
Filippos Karapetis
84de6f5f53
TRECISION: Move more graphics related functions inside GraphicsManager
...
Also, fix an OOB access to backgroundPtr in ReadLoc()
2021-05-29 21:23:51 +01:00
Filippos Karapetis
11d5484c7c
TRECISION: Move gfx related buffers and functions inside GraphicsManager
2021-05-29 21:23:51 +01:00
Filippos Karapetis
8602926045
TRECISION: Remove _curAnimFrame
2021-05-29 21:23:51 +01:00
Filippos Karapetis
727b33694f
TRECISION: Remove non-existent functions and sync function definitions
2021-05-29 21:23:51 +01:00
Filippos Karapetis
46138c4ce3
TRECISION: Move byte2wordn() inside AnimManager. Some cleanup
2021-05-29 21:23:50 +01:00
Filippos Karapetis
486af5f5db
TRECISION: Merge byte2wordm() and byte2wordn()
2021-05-29 21:23:50 +01:00
Filippos Karapetis
91f2617317
TRECISION: Simplify coordinate checking macros
2021-05-29 21:23:50 +01:00
Filippos Karapetis
32fcd29117
TRECISION: Remove unused variables
2021-05-29 21:23:50 +01:00
Filippos Karapetis
40ae8949f5
TRECISION: Simplify Smacker dirty rect intersection checking
2021-05-29 21:23:50 +01:00
Filippos Karapetis
fb5fe793f8
TRECISION: Remove obsolete thumbnail saving code
2021-05-29 21:23:49 +01:00
Filippos Karapetis
29227f0505
TRECISION: Remove lock() / unlock()
...
They are no longer needed
2021-05-29 21:23:49 +01:00
Filippos Karapetis
897860a43f
TRECISION: Remove dead code and simplify object drawing checks
2021-05-29 21:23:49 +01:00
Strangerke
47eaccc391
TRECISION: Fix signed/unsigned comparison in DecCR
2021-05-29 21:23:49 +01:00
Filippos Karapetis
4dfc6edd97
TRECISION: Fix regression in frame drawing
...
A regression from 01aed9f2828c95d6315e2b1bbb841c36da2ddb3f
2021-05-29 21:23:49 +01:00
Filippos Karapetis
588621bcb9
TRECISION: Clean up video and inventory animation code
...
This includes the following simplifications:
- The _curSmackBuffer variable is no longer needed
- refreshSmkIcon() has been refactored and simplified
- byte2word() has been removed
2021-05-29 21:23:48 +01:00
Filippos Karapetis
b024921ccf
TRECISION: Replace screen height values with MAXY
2021-05-29 21:23:48 +01:00
Filippos Karapetis
516092a149
TRECISION: Simplify init3DRoom() and remove _screenMaxX
2021-05-29 21:23:48 +01:00
Filippos Karapetis
31fbae2b41
TRECISION: Remove redundant function declarations
2021-05-29 21:23:48 +01:00
Filippos Karapetis
5178eb7985
TRECISION: Rename AtFrame functions, some cleanup
2021-05-29 21:23:48 +01:00
Strangerke
4f8665fc63
TRECISION: Rework the decompress function
2021-05-29 21:23:47 +01:00
Strangerke
69a1f281a9
TRECISION: Move DecCR to utils (with some changes), some renaming
2021-05-29 21:23:47 +01:00
Strangerke
6f4c23d608
TRECISION: Reduce some variable scopes in drawCharacter
2021-05-29 21:23:47 +01:00
Strangerke
b114497c64
TRECISION: Get rid of some useless globals
2021-05-29 21:23:47 +01:00
Filippos Karapetis
73619e788b
TRECISION: Some readability changes to AtFrame* methods
2021-05-29 21:23:47 +01:00
Filippos Karapetis
2066b63370
TRECISION: Remove unused defines
2021-05-29 21:23:46 +01:00
Filippos Karapetis
98ea3b754c
TRECISION: Remove commented out code
2021-05-29 21:23:46 +01:00
Filippos Karapetis
3ac5aaf4b1
TRECISION: Rename sign -> text, Clear -> clear
2021-05-29 21:23:46 +01:00
Filippos Karapetis
662e4b780e
TRECISION: Move the MessageQueue methods in the same place
2021-05-29 21:23:46 +01:00
Filippos Karapetis
a6f866fff3
TRECISION: Rename eventIsEmpty() to isEmptyEvent()
2021-05-29 21:23:45 +01:00
Filippos Karapetis
6880518164
TRECISION: Add a helper for empty events in the SScriptFrame struct
2021-05-29 21:23:45 +01:00
Filippos Karapetis
380091419d
TRECISION: Remove unused definitions
2021-05-29 21:23:45 +01:00
Filippos Karapetis
878e044afd
TRECISION: Remove unused includes
2021-05-29 21:23:45 +01:00
Filippos Karapetis
9fdd1732f9
TRECISION: Remove unused defines
2021-05-29 21:23:45 +01:00
Filippos Karapetis
12c93a5ec3
TRECISION: Remove unused globals
2021-05-29 21:23:44 +01:00
Filippos Karapetis
162bacb2ef
TRECISION: Remove a global and add a CHECKME
2021-05-29 21:23:44 +01:00
Filippos Karapetis
4e8c7e6c5f
TRECISION: Remove unused globals
2021-05-29 21:23:44 +01:00
Filippos Karapetis
b627467051
TRECISION: Merge SCREENLEN and MAXX
2021-05-29 21:23:44 +01:00
Strangerke
dac295dfa8
TRECISION: Remove a parameter in CharacterTalk definition
2021-05-29 21:23:44 +01:00
Strangerke
7ad92c28f7
TRECISION: Add a checkme
2021-05-29 21:23:43 +01:00
Strangerke
b3ab113d59
TRECISION: Move doSys to logic manager, remove utility.cpp
2021-05-29 21:23:43 +01:00
Strangerke
2159296bff
TRECISION: Remove useless casts in 3drend
2021-05-29 21:23:43 +01:00
Filippos Karapetis
1a9183683d
TRECISION: Clean up includes
2021-05-29 21:23:43 +01:00