map.c
author truelight
Tue, 28 Dec 2004 11:51:31 +0000
changeset 817 4f9377b7fd2b
parent 689 1412bc834a8d
child 863 8d09f9331a80
permissions -rw-r--r--
(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
an uint8 till the savegame version is bumped to version 5. Then it works
automaticly as a fully uint16. So _stations[] can not be increased till
after the bump!!
679
e959706a3e4d (svn r1117) Move map arrays and some related macros into their own files map.c and map.h
tron
parents:
diff changeset
     1
#include "stdafx.h"
e959706a3e4d (svn r1117) Move map arrays and some related macros into their own files map.c and map.h
tron
parents:
diff changeset
     2
#include "ttd.h"
e959706a3e4d (svn r1117) Move map arrays and some related macros into their own files map.c and map.h
tron
parents:
diff changeset
     3
#include "map.h"
e959706a3e4d (svn r1117) Move map arrays and some related macros into their own files map.c and map.h
tron
parents:
diff changeset
     4
689
1412bc834a8d (svn r1130) Add helper functions to query map size
tron
parents: 679
diff changeset
     5
uint _map_log_x = TILE_X_BITS;
1412bc834a8d (svn r1130) Add helper functions to query map size
tron
parents: 679
diff changeset
     6
uint _map_log_y = TILE_Y_BITS;
1412bc834a8d (svn r1130) Add helper functions to query map size
tron
parents: 679
diff changeset
     7
817
4f9377b7fd2b (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
truelight
parents: 689
diff changeset
     8
byte   _map_type_and_height [TILES_X * TILES_Y];
4f9377b7fd2b (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
truelight
parents: 689
diff changeset
     9
byte   _map5                [TILES_X * TILES_Y];
4f9377b7fd2b (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
truelight
parents: 689
diff changeset
    10
byte   _map3_lo             [TILES_X * TILES_Y];
4f9377b7fd2b (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
truelight
parents: 689
diff changeset
    11
byte   _map3_hi             [TILES_X * TILES_Y];
4f9377b7fd2b (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
truelight
parents: 689
diff changeset
    12
byte   _map_owner           [TILES_X * TILES_Y];
4f9377b7fd2b (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
truelight
parents: 689
diff changeset
    13
uint16 _map2                [TILES_X * TILES_Y];
4f9377b7fd2b (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
truelight
parents: 689
diff changeset
    14
byte   _map_extra_bits      [TILES_X * TILES_Y / 4];