forked from mirror/OpenTTD
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
-CodeLayout: Remove trailing spaces and Windows linebreaks
This commit is contained in:
@@ -84,11 +84,11 @@ static void DrawTile_Unmovable(TileInfo *ti)
|
||||
ormod = PLAYER_SPRITE_COLOR(_map_owner[ti->tile]);
|
||||
|
||||
t = _unmovable_display_datas[ti->map5 & 0x7F];
|
||||
DrawGroundSprite(*(uint16*)t | ormod);
|
||||
DrawGroundSprite(*(const uint16*)t | ormod);
|
||||
|
||||
t += sizeof(uint16);
|
||||
|
||||
for(dtss = (DrawTileSeqStruct *)t; (byte)dtss->delta_x != 0x80; dtss++) {
|
||||
for(dtss = (const DrawTileSeqStruct *)t; (byte)dtss->delta_x != 0x80; dtss++) {
|
||||
image = dtss->image;
|
||||
if (_display_opt & DO_TRANS_BUILDINGS) {
|
||||
image |= ormod;
|
||||
|
Reference in New Issue
Block a user