mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
User house validation
This commit is contained in:
@@ -534,7 +534,7 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
|
||||
OffsetRectRoomRelative(&itsRect, neighbor);
|
||||
if (SectRect(&itsRect, &testRect, &whoCares))
|
||||
{
|
||||
ExtractFloorSuite(thisObject.data.e.where, &floor, &suite);
|
||||
ExtractFloorSuite(*thisHouse, thisObject.data.e.where, &floor, &suite);
|
||||
room = GetRoomNumber(floor, suite);
|
||||
obj = (short)thisObject.data.e.who;
|
||||
DrawLightSwitch(&itsRect, GetObjectState(room, obj));
|
||||
@@ -547,7 +547,7 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
|
||||
OffsetRectRoomRelative(&itsRect, neighbor);
|
||||
if (SectRect(&itsRect, &testRect, &whoCares))
|
||||
{
|
||||
ExtractFloorSuite(thisObject.data.e.where, &floor, &suite);
|
||||
ExtractFloorSuite(*thisHouse, thisObject.data.e.where, &floor, &suite);
|
||||
room = GetRoomNumber(floor, suite);
|
||||
obj = (short)thisObject.data.e.who;
|
||||
DrawMachineSwitch(&itsRect, GetObjectState(room, obj));
|
||||
@@ -560,7 +560,7 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
|
||||
OffsetRectRoomRelative(&itsRect, neighbor);
|
||||
if (SectRect(&itsRect, &testRect, &whoCares))
|
||||
{
|
||||
ExtractFloorSuite(thisObject.data.e.where, &floor, &suite);
|
||||
ExtractFloorSuite(*thisHouse, thisObject.data.e.where, &floor, &suite);
|
||||
room = GetRoomNumber(floor, suite);
|
||||
obj = (short)thisObject.data.e.who;
|
||||
DrawThermostat(&itsRect, GetObjectState(room, obj));
|
||||
@@ -573,7 +573,7 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
|
||||
OffsetRectRoomRelative(&itsRect, neighbor);
|
||||
if (SectRect(&itsRect, &testRect, &whoCares))
|
||||
{
|
||||
ExtractFloorSuite(thisObject.data.e.where, &floor, &suite);
|
||||
ExtractFloorSuite(*thisHouse, thisObject.data.e.where, &floor, &suite);
|
||||
room = GetRoomNumber(floor, suite);
|
||||
obj = (short)thisObject.data.e.who;
|
||||
DrawPowerSwitch(&itsRect, GetObjectState(room, obj));
|
||||
@@ -586,7 +586,7 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
|
||||
OffsetRectRoomRelative(&itsRect, neighbor);
|
||||
if (SectRect(&itsRect, &testRect, &whoCares))
|
||||
{
|
||||
ExtractFloorSuite(thisObject.data.e.where, &floor, &suite);
|
||||
ExtractFloorSuite(*thisHouse, thisObject.data.e.where, &floor, &suite);
|
||||
room = GetRoomNumber(floor, suite);
|
||||
obj = (short)thisObject.data.e.who;
|
||||
DrawKnifeSwitch(&itsRect, GetObjectState(room, obj));
|
||||
|
Reference in New Issue
Block a user