viewport.c
changeset 863 6a1444534f62
parent 856 918759cedca8
child 873 732553f5b169
equal deleted inserted replaced
862:9baf2b0cdb18 863:6a1444534f62
  1374 
  1374 
  1375 void MarkTileDirty(int x, int y)
  1375 void MarkTileDirty(int x, int y)
  1376 {
  1376 {
  1377 	int z = 0;
  1377 	int z = 0;
  1378 	Point pt;
  1378 	Point pt;
  1379 	if (IS_INT_INSIDE(x, 0, TILES_X*16) && IS_INT_INSIDE(y, 0, TILES_Y*16))
  1379 	if (IS_INT_INSIDE(x, 0, MapSizeX() * 16) &&
       
  1380 			IS_INT_INSIDE(y, 0, MapSizeY() * 16))
  1380 		z = GetTileZ(TILE_FROM_XY(x,y));
  1381 		z = GetTileZ(TILE_FROM_XY(x,y));
  1381 	pt = RemapCoords(x, y, z);
  1382 	pt = RemapCoords(x, y, z);
  1382 
  1383 
  1383 	MarkAllViewportsDirty(
  1384 	MarkAllViewportsDirty(
  1384 		pt.x - 31,
  1385 		pt.x - 31,