Codechange: Remove TownLayoutByte type

This commit is contained in:
Charles Pigott
2019-04-21 22:56:35 +01:00
committed by PeterN
parent 0e439aeab7
commit f20b75d712
5 changed files with 13 additions and 17 deletions

View File

@@ -177,7 +177,7 @@ void Town::InitializeLayout(TownLayout layout)
return;
}
this->layout = TileHash(TileX(this->xy), TileY(this->xy)) % (NUM_TLS - 1);
this->layout = static_cast<TownLayout>(TileHash(TileX(this->xy), TileY(this->xy)) % (NUM_TLS - 1));
}
/**