author | celestar |
Sun, 11 Mar 2007 09:28:58 +0000 | |
branch | custombridgeheads |
changeset 5651 | 335d9bd345b0 |
parent 5643 | 3778051e8095 |
child 6037 | 7409c8f581e1 |
permissions | -rw-r--r-- |
3959 | 1 |
/* $Id$ */ |
2 |
||
4666
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
3 |
#ifndef ROADVEH_H |
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
4 |
#define ROADVEH_H |
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
5 |
|
3959 | 6 |
#include "vehicle.h" |
7 |
||
8 |
||
9 |
static inline bool IsRoadVehInDepot(const Vehicle* v) |
|
10 |
{ |
|
11 |
assert(v->type == VEH_Road); |
|
12 |
return v->u.road.state == 254; |
|
13 |
} |
|
14 |
||
15 |
static inline bool IsRoadVehInDepotStopped(const Vehicle* v) |
|
16 |
{ |
|
17 |
return IsRoadVehInDepot(v) && v->vehstatus & VS_STOPPED; |
|
18 |
} |
|
4653
091f530bae28
(svn r6529) -Fix r6513: [depot window] added missing switch in CcCloneVehicle()
bjarni
parents:
3959
diff
changeset
|
19 |
|
091f530bae28
(svn r6529) -Fix r6513: [depot window] added missing switch in CcCloneVehicle()
bjarni
parents:
3959
diff
changeset
|
20 |
void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2); |
4666
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
21 |
|
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
22 |
#endif /* ROADVEH_H */ |