(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for

road vehicles for those who prefer the technical explanation.
This commit is contained in:
maedhros
2007-06-11 14:00:16 +00:00
parent be0f5cf877
commit 3e326085fa
21 changed files with 570 additions and 212 deletions

View File

@@ -30,6 +30,7 @@
#include "waypoint.h"
#include "variables.h"
#include "train.h"
#include "roadveh.h"
#include "unmovable_map.h"
#include "string.h"
#include "screenshot.h"
@@ -849,7 +850,7 @@ static void ToolbarRoadClick(Window *w)
int dis = -1;
FOR_ALL_VEHICLES(v) {
if (v->type == VEH_ROAD) CLRBIT(dis, v->owner);
if (v->type == VEH_ROAD && IsRoadVehFront(v)) CLRBIT(dis, v->owner);
}
PopupMainPlayerToolbMenu(w, 332, 14, dis);
}