| author | belugas |
| Wed, 08 Nov 2006 05:05:35 +0000 | |
| changeset 5056 | 8fabd0020af7 |
| parent 4666 | 172a0cdf28a6 |
| permissions | -rw-r--r-- |
| 3959 | 1 |
/* $Id$ */ |
2 |
||
|
4666
172a0cdf28a6
(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 |
|
172a0cdf28a6
(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 |
|
172a0cdf28a6
(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
9f72ab9dc4a7
(svn r6529) -Fix r6513: [depot window] added missing switch in CcCloneVehicle()
bjarni
parents:
3959
diff
changeset
|
19 |
|
|
9f72ab9dc4a7
(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
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
21 |
|
|
172a0cdf28a6
(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 */ |