(svn r17455) -Codechange: use sprite names instead of magic numbers in table/clear_land.h and change some names

This commit is contained in:
yexo
2009-09-07 13:38:57 +00:00
parent 6a944f06b3
commit d384908d56
7 changed files with 59 additions and 75 deletions

View File

@@ -32,6 +32,7 @@
#include "table/strings.h"
#include "table/sprites.h"
#include "table/tree_land.h"
#include "table/clear_land.h"
/**
* List of tree placer algorithm.
@@ -446,7 +447,7 @@ static void DrawTile_Trees(TileInfo *ti)
case TREE_GROUND_SHORE: DrawShoreTile(ti->tileh); break;
case TREE_GROUND_GRASS: DrawClearLandTile(ti, GetTreeDensity(ti->tile)); break;
case TREE_GROUND_ROUGH: DrawHillyLandTile(ti); break;
default: DrawGroundSprite(_tree_sprites_1[GetTreeDensity(ti->tile)] + _tileh_to_sprite[ti->tileh], PAL_NONE); break;
default: DrawGroundSprite(_clear_land_sprites_snow_desert[GetTreeDensity(ti->tile)] + _tileh_to_sprite[ti->tileh], PAL_NONE); break;
}
DrawClearLandFence(ti);