| author | miham |
| Mon, 04 Dec 2006 04:22:53 +0000 | |
| changeset 5226 | fce4834d4201 |
| parent 4666 | 850b5b6e4bac |
| 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 */ |