User house validation

This commit is contained in:
elasota
2021-04-25 22:08:15 -04:00
parent 19b1a307e7
commit 0385c28002
18 changed files with 1528 additions and 52 deletions

View File

@@ -1075,7 +1075,7 @@ void DoSwitchObjectInfo (void)
PasStringCopy(PSTR("none"), roomStr);
else
{
ExtractFloorSuite(thisRoom->objects[objActive].data.e.where, &floor, &suite);
ExtractFloorSuite(*thisHouse, thisRoom->objects[objActive].data.e.where, &floor, &suite);
NumToString((long)floor, roomStr);
PasStringConcat(roomStr, PSTR(" / "));
NumToString((long)suite, tempStr);
@@ -1196,7 +1196,7 @@ void DoTriggerObjectInfo (void)
PasStringCopy(PSTR("none"), roomStr);
else
{
ExtractFloorSuite(thisRoom->objects[objActive].data.e.where, &floor, &suite);
ExtractFloorSuite(*thisHouse, thisRoom->objects[objActive].data.e.where, &floor, &suite);
NumToString((long)floor, roomStr);
PasStringConcat(roomStr, PSTR(" / "));
NumToString((long)suite, tempStr);
@@ -1869,7 +1869,7 @@ void DoTransObjectInfo (short what)
PasStringCopy(PSTR("none"), roomStr);
else
{
ExtractFloorSuite(thisRoom->objects[objActive].data.d.where, &floor, &suite);
ExtractFloorSuite(*thisHouse, thisRoom->objects[objActive].data.d.where, &floor, &suite);
NumToString((long)floor, roomStr);
PasStringConcat(roomStr, PSTR(" / "));
NumToString((long)suite, tempStr);