unmovable_cmd.c
changeset 222 b88456001397
parent 193 0a7025304867
child 384 bf1303e754ff
equal deleted inserted replaced
221:124a804562a5 222:b88456001397
    82 		if (ti->tileh) DrawFoundation(ti, ti->tileh);
    82 		if (ti->tileh) DrawFoundation(ti, ti->tileh);
    83 
    83 
    84 		ormod = PLAYER_SPRITE_COLOR(_map_owner[ti->tile]);
    84 		ormod = PLAYER_SPRITE_COLOR(_map_owner[ti->tile]);
    85 
    85 
    86 		t = _unmovable_display_datas[ti->map5 & 0x7F];
    86 		t = _unmovable_display_datas[ti->map5 & 0x7F];
    87 		DrawGroundSprite(*(uint16*)t | ormod);
    87 		DrawGroundSprite(*(const uint16*)t | ormod);
    88 
    88 
    89 		t += sizeof(uint16);
    89 		t += sizeof(uint16);
    90 
    90 
    91 		for(dtss = (DrawTileSeqStruct *)t; (byte)dtss->delta_x != 0x80; dtss++) {
    91 		for(dtss = (const DrawTileSeqStruct *)t; (byte)dtss->delta_x != 0x80; dtss++) {
    92 			image =	dtss->image;
    92 			image =	dtss->image;
    93 			if (_display_opt & DO_TRANS_BUILDINGS) {
    93 			if (_display_opt & DO_TRANS_BUILDINGS) {
    94 				image |= ormod;
    94 				image |= ormod;
    95 			} else {
    95 			} else {
    96 				image = (image & 0x3FFF) | 0x03224000;
    96 				image = (image & 0x3FFF) | 0x03224000;