landscape.c
changeset 5385 3868f2e6db9b
parent 4990 000c644b08e2
equal deleted inserted replaced
5384:10b6d955e1ac 5385:3868f2e6db9b
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 #include "stdafx.h"
     3 #include "stdafx.h"
     4 #include "openttd.h"
     4 #include "openttd.h"
       
     5 #include "bridge_map.h"
     5 #include "heightmap.h"
     6 #include "heightmap.h"
     6 #include "clear_map.h"
     7 #include "clear_map.h"
     7 #include "functions.h"
     8 #include "functions.h"
     8 #include "map.h"
     9 #include "map.h"
     9 #include "player.h"
    10 #include "player.h"
   412 
   413 
   413 	for (y = 0; y < maxy; y++) {
   414 	for (y = 0; y < maxy; y++) {
   414 		for (x = 0; x < maxx; x++) {
   415 		for (x = 0; x < maxx; x++) {
   415 			MakeClear(sizex * y + x, CLEAR_GRASS, 3);
   416 			MakeClear(sizex * y + x, CLEAR_GRASS, 3);
   416 			SetTileHeight(sizex * y + x, 0);
   417 			SetTileHeight(sizex * y + x, 0);
       
   418 			_m[sizex * y + x].extra = 0;
       
   419 			ClearBridgeMiddle(sizex * y + x);
   417 		}
   420 		}
   418 		MakeVoid(sizex * y + x);
   421 		MakeVoid(sizex * y + x);
   419 	}
   422 	}
   420 	for (x = 0; x < sizex; x++) MakeVoid(sizex * y + x);
   423 	for (x = 0; x < sizex; x++) MakeVoid(sizex * y + x);
   421 }
   424 }