disaster_cmd.c
changeset 909 65cdb609b7a6
parent 900 27eb21ced433
child 919 544f374ee392
equal deleted inserted replaced
908:283e87112491 909:65cdb609b7a6
   907 				AddNewsItem(STR_B005_COAL_MINE_SUBSIDENCE_LEAVES,
   907 				AddNewsItem(STR_B005_COAL_MINE_SUBSIDENCE_LEAVES,
   908 					NEWS_FLAGS(NM_THIN,NF_VIEWPORT|NF_TILE,NT_ACCIDENT,0), i->xy + TILE_XY(1,1), 0);
   908 					NEWS_FLAGS(NM_THIN,NF_VIEWPORT|NF_TILE,NT_ACCIDENT,0), i->xy + TILE_XY(1,1), 0);
   909 
   909 
   910 				{
   910 				{
   911 					uint tile = i->xy;
   911 					uint tile = i->xy;
   912 					int step = TileOffsByDir(Random() & 3);
   912 					TileIndexDiff step = TileOffsByDir(Random() & 3);
   913 					int count = 30;
   913 					int count = 30;
   914 					do {
   914 					do {
   915 						DisasterClearSquare(tile);
   915 						DisasterClearSquare(tile);
   916 						tile = TILE_MASK(tile + step);
   916 						tile = TILE_MASK(tile + step);
   917 					} while (--count);
   917 					} while (--count);