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

@@ -129,27 +129,17 @@ Boolean KeepObjectLegal (void)
theObject->data.a.topLeft.v = kSewerGrateTop;
theObject->data.a.distance += 2;
}
if ((theObject->what == kFloorTrans) &&
(theObject->data.a.topLeft.v != kFloorTransTop))
{
theObject->data.a.topLeft.v = kFloorTransTop;
theObject->data.a.distance += 2;
}
if (ObjectHasHandle(&direction, &dist))
{
switch (direction)
{
case kAbove:
dist = bounds.top - dist;
if ((theObject->what == kFloorVent) ||
(theObject->what == kFloorBlower) ||
(theObject->what == kTaper) ||
(theObject->what == kCandle) ||
(theObject->what == kStubby))
if (BlowerTypeHasUpperLimit(theObject->what))
{
if (dist < 36)
if (dist < kUpwardVentMinY)
{
theObject->data.a.distance += dist - 36;
theObject->data.a.distance += dist - kUpwardVentMinY;
unchanged = false;
}
}