mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r15838) -Fix: MSVC 64 bits warnings
This commit is contained in:
parent
5c44bb6b63
commit
4546be7e90
@ -880,9 +880,9 @@ static void DoDisaster()
|
|||||||
{
|
{
|
||||||
byte buf[lengthof(_disasters)];
|
byte buf[lengthof(_disasters)];
|
||||||
|
|
||||||
size_t j = 0;
|
byte j = 0;
|
||||||
for (size_t i = 0; i != lengthof(_disasters); i++) {
|
for (size_t i = 0; i != lengthof(_disasters); i++) {
|
||||||
if (_cur_year >= _disasters[i].min_year && _cur_year < _disasters[i].max_year) buf[j++] = i;
|
if (_cur_year >= _disasters[i].min_year && _cur_year < _disasters[i].max_year) buf[j++] = (byte)i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (j == 0) return;
|
if (j == 0) return;
|
||||||
|
@ -559,7 +559,7 @@ static char *MakeCzechTownName(char *buf, const char *last, uint32 seed)
|
|||||||
assert(i > 0);
|
assert(i > 0);
|
||||||
|
|
||||||
/* Load the ending */
|
/* Load the ending */
|
||||||
ending = map[SeedModChance(16, i, seed)];
|
ending = map[SeedModChance(16, (int)i, seed)];
|
||||||
/* Override possible CZG_*FREE; this must be a real gender,
|
/* Override possible CZG_*FREE; this must be a real gender,
|
||||||
* otherwise we get overflow when modifying the adjectivum. */
|
* otherwise we get overflow when modifying the adjectivum. */
|
||||||
gender = _name_czech_subst_ending[ending].gender;
|
gender = _name_czech_subst_ending[ending].gender;
|
||||||
|
Loading…
Reference in New Issue
Block a user