Commit Graph
90 Commits
Author SHA1 Message Date
Martin Gerhardy 0064723b24 TWINE: support different angles for lba1 and lba2 2023-01-16 17:46:28 +01:00
Martin Gerhardy c32a1d6b2e TWINE: renamed members 2023-01-15 11:28:58 +01:00
Martin Gerhardy decbede936 TWINE: renamed members and methods 2023-01-15 11:28:58 +01:00
Martin Gerhardy 6bbc92ef53 TWINE: renamed members and methods to match original sources 2023-01-07 13:09:15 +01:00
Martin Gerhardy 101b47623f TWINE: sanity check for fallback animation
if that animation could not get found, we access the animdata with a negative array index
(just a theoretical issue though)
2022-10-02 14:08:29 +02:00
Martin Gerhardy 5573445468 TWINE: removed _currentlyProcessedActorIdx
this is all called from doAnim - so use that actorIdx instead
of a different state that might run out of sync
2022-07-10 23:25:38 +02:00
Martin Gerhardy 94e339a382 TWINE: added hack to fix the sokoban scene and keep the tank moving 2022-07-11 07:37:59 +02:00
Martin Gerhardy 10bf056008 TWINE: added todo comment about the tank-not-moving hack
see https://bugs.scummvm.org/ticket/13177
2022-07-10 22:53:42 +02:00
Martin Gerhardy 4384040be5 TWINE: this variable is reset in worldColBrick anyway 2022-06-14 20:33:00 +02:00
Martin Gerhardy 6fbf032fc7 TWINE: fixed regression introduced in 3d5d5317a8
the modification of the processActor values from checkActorCollisionWithBricks and checkHeroCollisionWithBricks were
lost. The bug is that you could move crates into walls in the 'sokoban'-scene (scene 35).

See https://bugs.scummvm.org/ticket/13177

Once we remove the processActorSave hack, this would re-introduced the tank bug in scene 63 - that's why the fix
is non functional yet.
2022-06-14 20:32:38 +02:00
Martin Gerhardy 47e858392e TWINE: extract to local variable 2022-06-14 20:27:10 +02:00
Martin Gerhardy 4e73580f53 TWINE: renamed member to match original sources 2022-06-12 22:22:34 +02:00
Martin Gerhardy 613d8e342d TWINE: renamed a few more methods and defines 2022-06-11 14:52:19 +02:00
Martin Gerhardy 8fd03789b0 TWINE: synced more names with original sources 2022-06-11 13:55:46 +02:00
Martin Gerhardy 9ba2652fa3 TWINE: reduced access to _processActor 2022-06-11 13:07:09 +02:00
Martin Gerhardy 0f411e7669 TWINE: renamed member to match original sources 2022-06-11 12:44:22 +02:00
Martin Gerhardy c2825bfc45 TWINE: renamed variables and added comments from the original code 2022-06-11 12:43:33 +02:00
Martin Gerhardy 049c6a63eb TWINE: activate else branch as found in the original sources 2022-06-11 09:56:54 +02:00
Martin Gerhardy ff1de24376 TWINE: renamed member to match original source code 2022-06-11 09:56:54 +02:00
Martin Gerhardy 23815c35a8 TWINE: fixed typo 2022-06-11 09:56:54 +02:00
Martin Gerhardy 97bddcf506 TWINE: fixed invalid processActor z coordinate handling
found in original source code OBJECT.C lines 1677-1680
2022-02-15 07:43:29 +01:00
Martin Gerhardy 04e7afea1a TWINE: replaced magic numbers 2021-12-31 11:49:01 +01:00
Martin Gerhardy 66c444d340 TWINE: fixed missing dynamic flag for AnimFrameReached 2021-12-31 11:48:31 +01:00
Martin Gerhardy 3d5d5317a8 TWINE: fixed invalid processActor reset
was the cause of this blocker bug: https://bugs.scummvm.org/ticket/13177

the _processCollision variable is overwritten in getBrickShape and the 'backup' is lost
2021-12-28 21:20:58 +01:00
Martin Gerhardy 2ec0400225 TWINE: Wrong shooting direction
the current actor rotation wasn't taken into account

fixes https://bugs.scummvm.org/ticket/13168
2021-12-27 17:32:33 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Martin Gerhardy 2fd077dd74 TWINE: renamed some members to match the source release
fixed SCENE_SIZE_MAX and getBrickShapeFull according to source release
2021-11-16 20:05:20 +01:00
Martin Gerhardy 4c25dad11a TWINE: updated collision code to be closer to the original source code 2021-11-01 18:08:40 +01:00
Martin Gerhardy 53699efacf TWINE: renamed enum value 2021-10-29 18:07:26 +02:00
Martin Gerhardy 950a4540cd TWINE: replaced magic numbers and named enum constants 2021-10-11 20:31:58 +02:00
Martin Gerhardy 1824b01e5e TWINE: fixed invalid sample idx for animation action ACTION_RIGHT_STEP 2021-10-03 21:08:45 +02:00
Martin Gerhardy 20a9d03cee TWINE: godmode is only for attacking the hero now 2021-09-09 07:12:32 +02:00
Martin Gerhardy 333d1e55d3 TWINE: added godmode debug command 2021-09-08 19:53:53 +02:00
Martin Gerhardy c416fe7830 TWINE: use forward decls and reduced header dependencies 2021-08-26 09:24:28 +02:00
Martin Gerhardy b04ea7b6ae TWINE: moved distance math functions out of the movement class 2021-08-15 12:30:09 +02:00
Martin Gerhardy 97ae393b0a TWINE: reduced usage of the global _destPos
also identified a few potential issues and marked them with a TODO
2021-08-15 12:30:09 +02:00
Martin Gerhardy 3d47d74933 TWINE: changed getBrickSoundType return value from int32 to uint8
this is parsed from the bll - no need to increase the size
2021-08-12 21:50:04 +02:00
Martin Gerhardy 61304fd896 TWINE: renamed members 2021-07-31 16:50:19 +02:00
Martin Gerhardy 429832986b TWINE: renamed members 2021-07-31 16:48:23 +02:00
Martin Gerhardy fc75e5709e TWINE: renamed members 2021-07-31 16:48:23 +02:00
Martin Gerhardy c6d26dc9d8 TWINE: renamed members 2021-07-31 16:48:23 +02:00
Martin Gerhardy c1a27b7512 TWINE: converted member to local var (Redraw::renderRect) 2021-07-31 08:38:38 +02:00
Martin Gerhardy e2d84ceae1 TWINE: simplified code 2021-07-31 08:38:38 +02:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Martin Gerhardy 750128b2cb TWINE: minor cleanup 2021-03-27 13:35:28 +01:00
Martin Gerhardy e0ba8d1d74 TWINE: use IVec3 and minor cleanup 2021-03-27 13:35:28 +01:00
Martin Gerhardy fca24a4eb7 TWINE: use I16Vec3 in animation code 2021-03-27 13:35:28 +01:00
Martin Gerhardy 8c76c1fac7 TWINE: use EntityData 2021-03-27 13:35:27 +01:00
Martin Gerhardy 33371ae454 TWINE: use BodyData for rendering 2021-03-27 13:35:27 +01:00
Martin Gerhardy cdc6281bd0 TWINE: extracted to methods 2021-03-27 13:35:27 +01:00