landscape.c
changeset 1095 b59632d9df1b
parent 1093 4fdc46eaf423
child 1140 82396799e4eb
equal deleted inserted replaced
1094:9a01482df45a 1095:b59632d9df1b
   232 	return _tile_type_procs[ti.type]->get_slope_z_proc(&ti);
   232 	return _tile_type_procs[ti.type]->get_slope_z_proc(&ti);
   233 }
   233 }
   234 
   234 
   235 // direction=true:  check for foundation in east and south corner
   235 // direction=true:  check for foundation in east and south corner
   236 // direction=false: check for foundation in west and south corner
   236 // direction=false: check for foundation in west and south corner
   237 bool hasFoundation(TileInfo *ti, bool direction)
   237 static bool hasFoundation(TileInfo *ti, bool direction)
   238 {
   238 {
   239 	bool south, other; // southern corner and east/west corner
   239 	bool south, other; // southern corner and east/west corner
   240 	uint slope = _tile_type_procs[ti->type]->get_slope_tileh_proc(ti);
   240 	uint slope = _tile_type_procs[ti->type]->get_slope_tileh_proc(ti);
   241 	uint tileh = ti->tileh;
   241 	uint tileh = ti->tileh;
   242 
   242