forked from mirror/OpenTTD
(svn r624) Merge r377 to trunk:
Remove the memmove special case for MSVC According to the MSDN it was just plain wrong and memmove was directly used in some places anyway
This commit is contained in:
@@ -126,7 +126,7 @@ void DeleteAnimatedTile(uint tile)
|
||||
for(ti=_animated_tile_list; ti!=endof(_animated_tile_list); ti++) {
|
||||
if ( (TileIndex)tile == *ti) {
|
||||
/* remove the hole */
|
||||
memcpy_overlapping(ti, ti+1, endof(_animated_tile_list) - 1 - ti);
|
||||
memmove(ti, ti+1, endof(_animated_tile_list) - 1 - ti);
|
||||
/* and clear last item */
|
||||
endof(_animated_tile_list)[-1] = 0;
|
||||
MarkTileDirtyByTile(tile);
|
||||
|
Reference in New Issue
Block a user