antoniou79
f48703b090
BLADERUNNER: Fix duplicate vertices in merged polygons
...
Some merged polygons for obstacles would get duplicate vertices
This could result in bad pathfinding and actors being stuck while walking to their destinations.
A soft lock could occur, for example in RC02, with Runciter walking to his desk to get
the camera disc, if he started at a point like -15.78f, -1238.894287f, 108432.14f
(ie. Actor_Set_At_XYZ(kActorRunciter, -15.78f, -1238.894287f, 108432.14f, Actor_Query_Facing_1024(kActorRunciter));)
Same could happen to the player's actor, but in Runciter's case from the above example,
the player loses control until Runciter gets the disc and gives it to McCoy, but since
Runctiter never reaches the waypoint to get the disc, the game is soft locked.
This will not automatically fix a scene's obstacles loaded from an old saved game.
For those cases, the player will have to exit the scene and re-enter for the obstacles
to be properly recalculated.
2024-12-30 22:21:58 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs
2021-04-15 21:20:36 +02:00
Thanasis Antoniou
cd076b26ae
BLADERUNNER: Using preincrement and pre-decrease where possible
...
In case the compiler won't optimize such cases
2020-02-24 21:24:06 +02:00
Thanasis Antoniou
a81e3add2f
BLADERUNNER: JANITORIAL: Code formatting fixes
2019-06-28 15:30:44 +03:00
Thanasis Antoniou
438a6223cb
BLADERUNNER: Fix photographer bug and awry clickables
2019-06-01 21:36:46 +03:00
Thanasis Antoniou
f56fe145d7
BLADERUNNER: Broaden path to Runciter desk RC02
2019-06-01 19:16:34 +03:00
Peter Kohaut
e86ee33999
BLADERUNNER: Abstraction from 555 pixel format
...
Removing hardcoded 555 pixel format to support Android
2019-04-17 22:51:18 +02:00
Thanasis Antoniou
c60c0c9676
BLADERUNNER: Alternate fix method for rare path finding assert faults
...
Disabled by default. This one allows polygons merged on a single point.
2019-03-09 23:17:09 +02:00
Peter Kohaut
1630cf0e6c
BLADERUNNER: Better fix for bug in pathfinding
...
Basically just more robust (but slower) fix to the intermittent assert
in pathfinding code when polygons were touching only by a single corner.
2019-03-09 19:20:28 +01:00
Peter Kohaut
a15a39ab4f
BLADERUNNER: Fixed intermittent assert in pathfinding
...
In rare cases when polygons touched by one corner only the merging
algorithm did not finish properly and ran out of the space and
triggered an assert.
2019-03-05 23:14:43 +01:00
Peter Kohaut
213e6b52c8
BLADERUNNER: Enable pathfinding
2019-03-04 19:43:45 +01:00
Peter Kohaut
12903b5ec7
BLADERUNNER: Cleanup of pathfinding code
2019-02-20 22:06:57 +01:00
Peter Kohaut
284a4e2912
BLADERUNNER: Fixed typo in pathfinding code
...
More locations should work
2019-02-16 18:03:10 +01:00
Peter Kohaut
68baae85c6
BLADERUNNER: More pathfinding code
...
Pathfinding is almost working, but there are still isues in few
locations, so I'm keeping it disabled.
2019-02-16 17:42:23 +01:00
Peter Kohaut
5475bca1e1
BLADERUNNER: Skip empty obstacle polygons
...
It was causing issues in BB07
2019-01-24 22:59:49 +01:00
Eugene Sandulenko
2eb6bba7bd
BLADERUNNER: Disable pathfinding by default.
...
So, peterkohaut could continue his debugging sessions.
2019-01-15 01:28:07 +01:00
Thomas Fach-Pedersen
c57e47f30d
BLADERUNNER: Obstacle path finding part 1
2019-01-14 18:50:30 +01:00
Peter Kohaut
25d3b2bf5b
BLADERUNNER: Replace assert with a debug message
...
Replaced the assert in pathfinding code so game can be playable.
2019-01-08 17:37:47 +01:00
Eugene Sandulenko
665bd9ce84
BLADERUNNER: Rect -> RectFloat
2018-12-17 19:27:03 +01:00
Thomas Fach-Pedersen
aabd5b2ec8
BLADERUNNER: Fix build
2018-05-07 19:31:53 +02:00
Thomas Fach-Pedersen
e3363635cb
BLADERUNNER: Implement obstacle polygon merging
2018-05-07 19:17:13 +02:00
Eugene Sandulenko
21ef072c11
BLADERUNNER: Fix memory leaks
2018-04-04 22:41:12 +02:00
Peter Kohaut
5e9985bd6e
BLADERUNNER: Load game methods
...
save methods update
replaced few char* with Common::String
changed few pointers to references
2018-03-24 17:28:34 +01:00
Thomas Fach-Pedersen
2a646f8cc2
BLADERUNNER: Save game methods
2018-03-24 17:07:06 +01:00
Peter Kohaut
1e5f9d3078
BLADERUNNER: Added basic KIA interface
...
Settings works
Help works
Clue database works
Fixed code for inserting objects into scene
Reorganization of few files
Unification & code formatting of few older files
2018-01-28 10:57:16 +01:00
Peter Kohaut
1740c490d7
BLADERUNNER: improvements to the walking code
...
path finding is still missing
video player has audio preloading
small fixes
2017-04-01 08:57:57 +02:00
Peter Kohaut
e0efee2eba
BLADERUNNER: added suspects db & fixed crimes db
2016-10-06 00:59:11 +02:00
Peter Kohaut
2b835eb14d
BLADERUNNER: added missing license & code formatting
2016-10-04 18:19:45 +02:00
Peter Kohaut
6547c35e15
BLADERUNNER: trying to figure out walking, added structures for obstacles used for pathfinding, fixed bug in searching for walkboxes
2016-10-04 18:15:57 +02:00