[Scummvm-git-logs] scummvm master -> d4e2ebe904b77de8798b15ae12c2cc26618d54d4

mduggan noreply at scummvm.org
Thu Nov 16 23:46:03 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d4e2ebe904 ULTIMA8: Tweak allowable support range to land


Commit: d4e2ebe904b77de8798b15ae12c2cc26618d54d4
    https://github.com/scummvm/scummvm/commit/d4e2ebe904b77de8798b15ae12c2cc26618d54d4
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-11-17T10:45:39+11:00

Commit Message:
ULTIMA8: Tweak allowable support range to land

Allows walking on to elevators in Crusader without allowing the avatar to hang
in the air too much.

Fixes #14705.

Changed paths:
    engines/ultima/ultima8/world/current_map.cpp


diff --git a/engines/ultima/ultima8/world/current_map.cpp b/engines/ultima/ultima8/world/current_map.cpp
index b209d98e04a..2412c9e23e1 100644
--- a/engines/ultima/ultima8/world/current_map.cpp
+++ b/engines/ultima/ultima8/world/current_map.cpp
@@ -795,8 +795,10 @@ PositionInfo CurrentMap::getPositionInfo(const Box &target, const Box &start, ui
 	}
 
 	info.valid = info.blocker == nullptr;
-	// Partial support allowed if land is close
-	if (supportz == target._z && landz + 8 >= target._z)
+	// Partial support allowed if land is close. Allow up to 9 to match
+	// the position adjustments in scanForValidPosition for stepping on
+	// to Crusader elevators.
+	if (supportz == target._z && landz + 9 >= target._z)
 		info.supported = true;
 
 	// Mark supported at minimum z




More information about the Scummvm-git-logs mailing list