(svn r2450) * Codechange: Replaced all uses of the arrays in tile.h with calls to the associated wrapper functions.

* Codechange: Made npf.c use some map array accessing wrappers instead of direct access.
* Codechange/Fix: Named every enum in tile.h. Fixes a nasty bug on MSVC where arrays would be initialised with zeroes (tnx Asterix_)
* Removed magic numbers from tables in tile.c.
* Added some explicit casts in tile.h.
This commit is contained in:
matthijs
2005-06-17 00:22:46 +00:00
parent bacc5396e6
commit 8e53533786
7 changed files with 146 additions and 127 deletions

2
tile.h
View File

@@ -4,7 +4,7 @@
#include "macros.h"
#include "map.h"
typedef enum TileType {
typedef enum TileTypes {
MP_CLEAR,
MP_RAILWAY,
MP_STREET,