[Scummvm-git-logs] scummvm master -> a6a427b59de761f6f73024ec6560bbb55e0362d8
aquadran
noreply at scummvm.org
Fri Nov 27 12:43:32 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
a6a427b59d GRIM: Make GetSectorName find sectors of any type
Commit: a6a427b59de761f6f73024ec6560bbb55e0362d8
https://github.com/scummvm/scummvm/commit/a6a427b59de761f6f73024ec6560bbb55e0362d8
Author: Joel Teichroeb (joel at teichroeb.net)
Date: 2026-11-27T13:43:27+01:00
Commit Message:
GRIM: Make GetSectorName find sectors of any type
GetSectorName asks findPointSector for NoneType, which no sector
matches, so it never returned a name. Update findPointSector to not
check type if we ask for NoneType.
The tourist scripts of Jambalaya and Lucre wait with it until a tourist
leaves its waypoint's sector before turning the waypoint's box off.
Changed paths:
engines/grim/set.cpp
diff --git a/engines/grim/set.cpp b/engines/grim/set.cpp
index ba1f86cf7a9..c846eb451c5 100644
--- a/engines/grim/set.cpp
+++ b/engines/grim/set.cpp
@@ -921,7 +921,7 @@ void Set::setupCamera() {
Sector *Set::findPointSector(const Math::Vector3d &p, Sector::SectorType type) {
for (int i = 0; i < _numSectors; i++) {
Sector *sector = _sectors[i];
- if (sector && (sector->getType() & type) && sector->isVisible() && sector->isPointInSector(p))
+ if (sector && (type == Sector::NoneType || (sector->getType() & type)) && sector->isVisible() && sector->isPointInSector(p))
return sector;
}
return nullptr;
More information about the Scummvm-git-logs
mailing list