Fixing stupid bug
This commit is contained in:
1 parent
255181cf31
commit
cf714d4133
1 file changed
+3
@@ -408,6 +408,9 @@ namespace FRG {
|
|||||||
const std::string& loc = snapshot->currentLocationId;
|
const std::string& loc = snapshot->currentLocationId;
|
||||||
if (loc == "uni_exterior") return snapshot->isDarklands ? hudUniExtDarkRoot : hudUniExtRoot;
|
if (loc == "uni_exterior") return snapshot->isDarklands ? hudUniExtDarkRoot : hudUniExtRoot;
|
||||||
if (loc == "uni_interior") return snapshot->isDarklands ? hudUniIntDarkRoot : hudUniIntRoot;
|
if (loc == "uni_interior") return snapshot->isDarklands ? hudUniIntDarkRoot : hudUniIntRoot;
|
||||||
|
// Other locations (e.g. campaigns that start directly in Darklands) have no
|
||||||
|
// dedicated HUD; reuse the Darklands one so the health bar is shown.
|
||||||
|
if (snapshot->isDarklands && !loc.empty()) return hudUniExtDarkRoot;
|
||||||
return hudDormRoot; // dorm, or a new game before the location is set
|
return hudDormRoot; // dorm, or a new game before the location is set
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user