Remove impossible conditional in RealSave_Town
Saving always uses the current savegame version SAVEGAME_VERSION, which is non-decreasing and already greater than 166. (cherry picked from commit 6b79497d380b3ae865ddf4d3efb71c319a2bb579)
This commit is contained in:

committed by
Jonathan G Rennison

parent
4a19babf9e
commit
293ce8b4ab
@@ -267,8 +267,6 @@ static void RealSave_Town(Town *t)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsSavegameVersionBefore(166)) return;
|
|
||||||
|
|
||||||
SlObject(&t->cargo_accepted, GetTileMatrixDesc());
|
SlObject(&t->cargo_accepted, GetTileMatrixDesc());
|
||||||
if (t->cargo_accepted.area.w != 0) {
|
if (t->cargo_accepted.area.w != 0) {
|
||||||
uint arr_len = t->cargo_accepted.area.w / AcceptanceMatrix::GRID * t->cargo_accepted.area.h / AcceptanceMatrix::GRID;
|
uint arr_len = t->cargo_accepted.area.w / AcceptanceMatrix::GRID * t->cargo_accepted.area.h / AcceptanceMatrix::GRID;
|
||||||
|
Reference in New Issue
Block a user