1
0
Fork 0

(svn r15729) -Fix: silence MSVC warning

release/0.7
rubidium 2009-03-15 21:16:07 +00:00
parent 9dc98b4c27
commit 5648ea3058
1 changed files with 7 additions and 6 deletions

View File

@ -1374,15 +1374,16 @@ extern int _nb_orig_names;
* Speeds things up a bit because these values are computed only once per name generation. * Speeds things up a bit because these values are computed only once per name generation.
*/ */
struct TownNameParams { struct TownNameParams {
bool grf; ///< true iff a newgrf is used to generate town name
uint32 grfid; ///< newgrf ID uint32 grfid; ///< newgrf ID
uint16 townnametype; ///< town name style uint16 townnametype; ///< town name style
bool grf; ///< true iff a newgrf is used to generate town name
TownNameParams(byte town_name) : TownNameParams(byte town_name)
grf(town_name >= _nb_orig_names), {
grfid(this->grf ? GetGRFTownNameId(town_name - _nb_orig_names) : 0), this->grf = town_name >= _nb_orig_names;
townnametype(this->grf ? GetGRFTownNameType(town_name - _nb_orig_names) : SPECSTR_TOWNNAME_START + town_name) this->grfid = this->grf ? GetGRFTownNameId(town_name - _nb_orig_names) : 0;
{ } this->townnametype = this->grf ? GetGRFTownNameType(town_name - _nb_orig_names) : SPECSTR_TOWNNAME_START + town_name;
}
}; };
/** /**