mirror of https://github.com/OpenTTD/OpenTTD
(svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing...
parent
6912223444
commit
29e0ded977
|
@ -595,7 +595,7 @@ void TileLoopClearHelper(uint tile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dirty != -1)
|
if (dirty != (uint) -1)
|
||||||
MarkTileDirtyByTile(dirty);
|
MarkTileDirtyByTile(dirty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -469,7 +469,7 @@ DEF_CONSOLE_CMD(ConResetCompany)
|
||||||
NetworkClientInfo *ci;
|
NetworkClientInfo *ci;
|
||||||
|
|
||||||
if (argc == 2) {
|
if (argc == 2) {
|
||||||
uint32 index = atoi(argv[1]);
|
byte index = atoi(argv[1]);
|
||||||
|
|
||||||
/* Check valid range */
|
/* Check valid range */
|
||||||
if (index < 1 || index > MAX_PLAYERS) {
|
if (index < 1 || index > MAX_PLAYERS) {
|
||||||
|
|
2
gfx.c
2
gfx.c
|
@ -1684,7 +1684,7 @@ void DrawMouseCursor(void)
|
||||||
_cursor.draw_pos.y = y;
|
_cursor.draw_pos.y = y;
|
||||||
_cursor.draw_size.y = h;
|
_cursor.draw_size.y = h;
|
||||||
|
|
||||||
assert(w*h < sizeof(_cursor_backup));
|
assert(w*h < (int) sizeof(_cursor_backup));
|
||||||
|
|
||||||
// Make backup of stuff below cursor
|
// Make backup of stuff below cursor
|
||||||
memcpy_pitch(
|
memcpy_pitch(
|
||||||
|
|
|
@ -40,7 +40,7 @@ static void DrawGraph(GraphDrawer *gw)
|
||||||
{
|
{
|
||||||
|
|
||||||
int i,j,k;
|
int i,j,k;
|
||||||
int x,y,old_x,old_y;
|
uint x,y,old_x,old_y;
|
||||||
int color;
|
int color;
|
||||||
int right, bottom;
|
int right, bottom;
|
||||||
int num_x, num_dataset;
|
int num_x, num_dataset;
|
||||||
|
|
Loading…
Reference in New Issue