(svn r12087) -Fix: MSVC warnings
This commit is contained in:
@@ -557,7 +557,7 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
|
|||||||
value = ((GDType*)&_opt_mod_temp.diff)[i];
|
value = ((GDType*)&_opt_mod_temp.diff)[i];
|
||||||
|
|
||||||
DrawArrowButtons(5, y, 3,
|
DrawArrowButtons(5, y, 3,
|
||||||
(diffic_d->clicked_button == i) ? 1 << diffic_d->clicked_increase : 0,
|
(diffic_d->clicked_button == i) ? 1 + !!diffic_d->clicked_increase : 0,
|
||||||
!(HasBit(disabled, i) || gsd->min == value),
|
!(HasBit(disabled, i) || gsd->min == value),
|
||||||
!(HasBit(disabled, i) || gsd->max == value));
|
!(HasBit(disabled, i) || gsd->max == value));
|
||||||
|
|
||||||
|
@@ -498,7 +498,7 @@ static void DrawTile_Trees(TileInfo *ti)
|
|||||||
uint mi = 0;
|
uint mi = 0;
|
||||||
|
|
||||||
for (uint i = 1; i < trees; i++) {
|
for (uint i = 1; i < trees; i++) {
|
||||||
if (te[i].x + te[i].y < min) {
|
if ((uint)(te[i].x + te[i].y) < min) {
|
||||||
min = te[i].x + te[i].y;
|
min = te[i].x + te[i].y;
|
||||||
mi = i;
|
mi = i;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user