Filippos Karapetis
26796e53cc
TRECISION: Fix several Smacker video issues
...
- The frames in Trecision start from 1, whereas they start from 0 in
ScummVM
- Chop off extra frames in DialogManager::playChoice()
2021-05-29 21:24:15 +01:00
Filippos Karapetis
b858978ec3
TRECISION: Simplify dirty rects code
2021-05-29 21:24:15 +01:00
Filippos Karapetis
a87ba5fdb2
TRECISION: Override endOfVideo() to check for frame numbers
2021-05-29 21:24:15 +01:00
Filippos Karapetis
ba007cfd2b
VIDEO: Allow endOfVideo() to be overriden
...
This is useful for Nightlong, which uses frame count to check for the
end of an animation
2021-05-29 21:24:15 +01:00
Filippos Karapetis
05da94bdea
TRECISION: Check for animation frames in handleEndOfVideo()
...
This fixes the animation in the werewolf room, which kept looping
without returning control back to the player. A regression from
4a8b32b0556ae191a29538a12054da9f549c8244
2021-05-29 21:24:15 +01:00
Filippos Karapetis
3bfb6d0ea4
TRECISION: Simplify doMouseInventory()
2021-05-29 21:24:14 +01:00
Filippos Karapetis
baf34e1fa4
TRECISION: Remove dead code (_flagScreenRefreshed flag)
...
It's set to true in ProcessTime() which is the first function to run
inside the game loop. Afterwards, it's never set to false, so
practically it's always true
2021-05-29 21:24:14 +01:00
Filippos Karapetis
db1afeb733
TRECISION: Remove dead code
...
- FromSomeOneSay is always false
- _flagSkipEnable is always true after someone starts talking and is
never set to false
- _flagSkipEnable is a uint16 and can never equal 99999 (bug from
the original code)
2021-05-29 21:24:14 +01:00
Filippos Karapetis
af5b88bace
TRECISION: Fix typo in comment
2021-05-29 21:24:14 +01:00
Filippos Karapetis
8377c9940d
TRECISION: Simplify some of the inventory code
2021-05-29 21:24:13 +01:00
SupSuper
9982387dce
TRECISION: Only enable ScummVM saves when game allows it
2021-05-29 21:24:13 +01:00
SupSuper
2957721d9f
TRECISION: Fix wrong return for Save Cancel
2021-05-29 21:24:13 +01:00
SupSuper
9ce06897df
TRECISION: Clean up some rects
2021-05-29 21:24:13 +01:00
SupSuper
3f6196f31b
TRECISION: Fix incorrect object rects
2021-05-29 21:24:13 +01:00
Strangerke
4c78fb9fbe
TRECISION: Fix ifndef in defines.h
2021-05-29 21:24:12 +01:00
Strangerke
c061fe823d
TRECISION: Move define.h
2021-05-29 21:24:12 +01:00
Strangerke
ab16163989
TRECISION: Move some functions to utils and script
2021-05-29 21:24:12 +01:00
Strangerke
ff54bf5c1a
TRECISION: Move some functions to the main class in script.cpp
2021-05-29 21:24:12 +01:00
Filippos Karapetis
0209f0760c
TRECISION: Fix ESC key handling after skipping a video
2021-05-29 21:24:11 +01:00
Strangerke
4e4d713fad
TRECISION: Add Actor source file
2021-05-29 21:24:11 +01:00
Filippos Karapetis
09e0f7bf33
TRECISION: Whitespace cleanup
2021-05-29 21:24:11 +01:00
Filippos Karapetis
45829f6b68
TRECISION: Use Common::Rect instead of individual rect dimensions
2021-05-29 21:24:11 +01:00
Strangerke
43de268f2d
TRECISION: Move sinCosAngle to utils
2021-05-29 21:24:11 +01:00
Strangerke
bb2a84ebd3
TRECISION: Rename Actor, add syncGameStream to it
2021-05-29 21:24:10 +01:00
Strangerke
d84937818c
TRECISION: rename some members of TrecisionEngine, remove a useless member
2021-05-29 21:24:10 +01:00
Strangerke
2aa603cccc
TRECISION: Remove _extraRoomObject, move a couple of things to utils and the main class
2021-05-29 21:24:10 +01:00
Strangerke
469073c49a
TRECISION: Merge llanim and llscreen, clean MK file, turn TextArea and DTextLines into char*, review the loading of SFace
2021-05-29 21:24:10 +01:00
Strangerke
e2363f921c
TRECISION: Change the parameter type of PaintScreen, initialize a static variable
2021-05-29 21:24:09 +01:00
Strangerke
d42b19cee1
TRECISION: Remove a "do not remove" variable, some polishing
2021-05-29 21:24:09 +01:00
Filippos Karapetis
8cbe2d03c9
TRECISION: Finish renaming item enums
2021-05-29 21:24:09 +01:00
Filippos Karapetis
6dc069f455
TRECISION: Start renaming inventory item enums
2021-05-29 21:24:09 +01:00
Filippos Karapetis
a333349122
TRECISION: Add the "item" console command to manipulate inventory items
2021-05-29 21:24:08 +01:00
Strangerke
ad22823453
TRECISION: Adapt a comment to the new type used in the previous commit
2021-05-29 21:24:08 +01:00
Filippos Karapetis
bc9c52984e
TRECISION: Change _isBitmap inside SSortTable to a boolean
2021-05-29 21:24:08 +01:00
Filippos Karapetis
3f490024e7
TRECISION: Remove end of line whitespace
2021-05-29 21:24:08 +01:00
Filippos Karapetis
22ea2526a4
TRECISION: Cleanup RedrawRoom()
2021-05-29 21:24:08 +01:00
Filippos Karapetis
682d5a66c3
TRECISION: Add new console command, "dialog", to start a dialog
2021-05-29 21:24:07 +01:00
Filippos Karapetis
d528c0e7c8
TRECISION: Remove unused param
2021-05-29 21:24:07 +01:00
Filippos Karapetis
129c3c72bd
TRECISION: Change _typology to _isBitmap (boolean)
2021-05-29 21:24:07 +01:00
Strangerke
1eb1433fb8
TRECISION: Make private some more members of DialogManager, some renaming
2021-05-29 21:24:07 +01:00
Strangerke
f40cdcea41
TRECISION: Some more renaming for consistency in DialogManager, add a couple of asserts
2021-05-29 21:24:07 +01:00
Strangerke
38488932a6
TRECISION: modify a couple of includes for consistency, some renaming in syncGameStream and PlayChoice to improve readability
2021-05-29 21:24:06 +01:00
Strangerke
f6aaff2c6b
TRECISION: Reduce the use of redirections in loadData (like in syncGameStream)
2021-05-29 21:24:06 +01:00
Strangerke
b0b3148b10
TRECISION: add syncGameStream and loadData to DialogManager
2021-05-29 21:24:06 +01:00
Strangerke
ade3cd2e82
TRECISION: Move _choice to DialogManager
2021-05-29 21:24:06 +01:00
Strangerke
f465a0fcb6
TRECISION: get rid of g_vm when it's possible
2021-05-29 21:24:05 +01:00
Strangerke
524bb44578
TRECISION: Move dialogs to DialogManager
2021-05-29 21:24:05 +01:00
Strangerke
1f43028a2c
TRECISION: Replace if sub blocks by switches
2021-05-29 21:24:05 +01:00
Strangerke
33d5f3d411
TRECISION: Rework large if statement in doSystemChangeRoom
2021-05-29 21:24:05 +01:00
Strangerke
8a829fd48b
TRECISION: Move QuitGame and DemoOver to script
2021-05-29 21:24:04 +01:00