mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +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]))
|
||||
masterObjects[n].dynaNum = dynamicNum;
|
||||
}
|
||||
if ((masterObjects[n].objectNum == i) &&
|
||||
(masterObjects[n].roomNum == localNumbers[neighbor]))
|
||||
masterObjects[n].dynaNum = dynamicNum;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -50,6 +50,10 @@ void ResetLocale (Boolean soft)
|
||||
{
|
||||
RemoveSavedMapsNotInRoom(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
|
||||
{
|
||||
|
Reference in New Issue
Block a user