mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Fix dynamic indexes desynchronizing on resolution change (fixes Slumberland boombox switch not working if you change resolution on the screen with the switch)
This commit is contained in:
@@ -953,15 +953,12 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!redraw) // set up links
|
for (n = 0; n < numMasterObjects; n++)
|
||||||
{
|
{
|
||||||
for (n = 0; n < numMasterObjects; n++)
|
if ((masterObjects[n].objectNum == i) &&
|
||||||
{
|
(masterObjects[n].roomNum == localNumbers[neighbor]))
|
||||||
if ((masterObjects[n].objectNum == i) &&
|
masterObjects[n].dynaNum = dynamicNum;
|
||||||
(masterObjects[n].roomNum == localNumbers[neighbor]))
|
|
||||||
masterObjects[n].dynaNum = dynamicNum;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,10 @@ void ResetLocale (Boolean soft)
|
|||||||
{
|
{
|
||||||
RemoveSavedMapsNotInRoom(localNumbers[kCentralRoom]);
|
RemoveSavedMapsNotInRoom(localNumbers[kCentralRoom]);
|
||||||
ZeroDinahsNotInRoom(localNumbers[kCentralRoom]);
|
ZeroDinahsNotInRoom(localNumbers[kCentralRoom]);
|
||||||
|
|
||||||
|
// Clear all dinah indexes, they'll be remapped
|
||||||
|
for (int i = 0; i < numMasterObjects; i++)
|
||||||
|
masterObjects[i].dynaNum = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user