Commit Graph
70 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 3cdd458428 TWINE: simplified checkValidObjPos 2023-01-15 11:28:58 +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 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 2a707b3dc9 TWINE: synced lerp methods with the original source 2022-06-14 20:53:52 +02:00
Martin Gerhardy 93e9b1f080 TWINE: use correct defines 2022-06-14 20:33:00 +02:00
Martin Gerhardy a90fef32dc TWINE: more collision fixes from original source code 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 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 76c78aef82 TWINE: reduced visibility 2022-06-11 13:11:36 +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 4c99013f34 TWINE: reduced code duplication 2022-06-11 12:41:31 +02:00
Martin Gerhardy ae4d701790 TWINE: fixed reajustActorPosition 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 c9604d7926 TWINE: fixed invisible check in checkCollisionWithActors 2022-06-11 09:56:54 +02:00
Martin Gerhardy 23815c35a8 TWINE: fixed typo 2022-06-11 09:56:54 +02:00
D G Turner 694cfd2843 TWINE: Fix Cut and Paste Error in Angle Logic
This test generates a GCC Compiler Warning regarding mutually exclusive
logical operations. This needs to be a "or", rather than an "and" since
it covers the 315 to 360,0 to 45 angular discontinuity. This is as per
the earlier code in the same function.
2022-02-16 12:32:54 +00:00
Martin Gerhardy a2401cbdd1 TWINE: fixed angle checks in Collision::handlePushing 2022-02-15 07:30:35 +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 950a4540cd TWINE: replaced magic numbers and named enum constants 2021-10-11 20:31:58 +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 39823a94c7 TWINE: removed todo comment 2021-08-16 00:15:01 +02:00
Martin Gerhardy 00cd369376 TWINE: fixed typo and simplified code 2021-08-16 00:15:01 +02:00
Martin Gerhardy 9f9bf386f8 TWINE: fixed #12804 - scene 35 is solvable now 2021-08-15 20:00:49 +02:00
Martin Gerhardy bf6672df34 TWINE: minor cleanup 2021-08-15 20:00:49 +02:00
Martin Gerhardy 7c068a774d TWINE: reduced code duplication
the bug #12804 is affected by sprite and 3d actors - thus merging these code parts
should help with fixing it
2021-08-15 20:00:49 +02:00
Martin Gerhardy cbea2c3e75 TWINE: reduced code duplication 2021-08-15 20:00:49 +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 2693ad0332 TWINE: let projectPositionOnScreen return the position vector
... to reduce direct access to the member
2021-08-10 21:21:57 +02:00
Martin Gerhardy f8641cf823 TWINE: renamed members and use constants 2021-08-10 09:21:33 +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 7440778d4c TWINE: extract to local variables 2021-03-27 19:15:52 +01:00
Martin Gerhardy b6b9cd5fbd TWINE: use IVec3 for bounding box checks 2021-03-27 13:35:28 +01:00
Martin Gerhardy 7c988dbca8 TWINE: renamed members 2021-03-19 15:49:07 +01:00
Martin Gerhardy 5fa6a23d8a TWINE: converted to enum class 2021-03-19 15:49:07 +01:00
Martin Gerhardy db23bbfbfc TWINE: minor cleanup 2021-03-19 15:49:07 +01:00
Martin Gerhardy 9d7ca64342 TWINE: removed ZVBox and ScenePoint struct - use BoundingBox and Vec3 2021-03-17 18:25:03 +01:00
Martin Gerhardy a713e02474 TWINE: die if fall height is too much 2021-03-12 21:02:23 +01:00