author | darkvater |
Sun, 14 Nov 2004 10:03:21 +0000 | |
changeset 391 | 279aef3587a5 |
parent 159 | 139cf78bfb28 |
child 473 | 77f0ef57e7cf |
permissions | -rw-r--r-- |
0 | 1 |
#include "stdafx.h" |
2 |
#include "ttd.h" |
|
3 |
#include "viewport.h" |
|
4 |
#include "command.h" |
|
5 |
||
6 |
static void DrawTile_Dummy(TileInfo *ti) |
|
7 |
{ |
|
8 |
DrawGroundSpriteAt(0x3EC, ti->x, ti->y, ti->z); |
|
9 |
} |
|
10 |
||
11 |
||
12 |
static uint GetSlopeZ_Dummy(TileInfo *ti) { |
|
13 |
return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + ti->z; |
|
14 |
} |
|
15 |
||
40 | 16 |
static uint GetSlopeTileh_Dummy(TileInfo *ti) { |
39 | 17 |
return ti->tileh; |
18 |
} |
|
19 |
||
0 | 20 |
static int32 ClearTile_Dummy(uint tile, byte flags) { |
21 |
return_cmd_error(STR_0001_OFF_EDGE_OF_MAP); |
|
22 |
} |
|
23 |
||
24 |
||
25 |
static void GetAcceptedCargo_Dummy(uint tile, AcceptedCargo *ac) |
|
26 |
{ |
|
27 |
/* not used */ |
|
28 |
} |
|
29 |
||
30 |
static void GetTileDesc_Dummy(uint tile, TileDesc *td) |
|
31 |
{ |
|
32 |
td->str = STR_EMPTY; |
|
33 |
td->owner = OWNER_NONE; |
|
34 |
} |
|
35 |
||
36 |
static void AnimateTile_Dummy(uint tile) |
|
37 |
{ |
|
38 |
/* not used */ |
|
39 |
} |
|
40 |
||
41 |
static void TileLoop_Dummy(uint tile) |
|
42 |
{ |
|
43 |
/* not used */ |
|
44 |
} |
|
45 |
||
46 |
static void ClickTile_Dummy(uint tile) |
|
47 |
{ |
|
48 |
/* not used */ |
|
49 |
} |
|
50 |
||
51 |
static void ChangeTileOwner_Dummy(uint tile, byte old_player, byte new_player) |
|
52 |
{ |
|
53 |
/* not used */ |
|
54 |
} |
|
55 |
||
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
40
diff
changeset
|
56 |
static uint32 GetTileTrackStatus_Dummy(uint tile, TransportType mode) |
0 | 57 |
{ |
58 |
return 0; |
|
59 |
} |
|
60 |
||
61 |
const TileTypeProcs _tile_type_dummy_procs = { |
|
62 |
DrawTile_Dummy, /* draw_tile_proc */ |
|
63 |
GetSlopeZ_Dummy, /* get_slope_z_proc */ |
|
64 |
ClearTile_Dummy, /* clear_tile_proc */ |
|
65 |
GetAcceptedCargo_Dummy, /* get_accepted_cargo_proc */ |
|
66 |
GetTileDesc_Dummy, /* get_tile_desc_proc */ |
|
67 |
GetTileTrackStatus_Dummy, /* get_tile_track_status_proc */ |
|
68 |
ClickTile_Dummy, /* click_tile_proc */ |
|
69 |
AnimateTile_Dummy, /* animate_tile_proc */ |
|
70 |
TileLoop_Dummy, /* tile_loop_clear */ |
|
71 |
ChangeTileOwner_Dummy, /* change_tile_owner_clear */ |
|
72 |
NULL, /* get_produced_cargo_proc */ |
|
73 |
NULL, /* vehicle_enter_tile_proc */ |
|
74 |
NULL, /* vehicle_leave_tile_proc */ |
|
39 | 75 |
GetSlopeTileh_Dummy, /* get_slope_tileh_proc */ |
0 | 76 |
}; |
77 |