src/train_gui.cpp
branchgamebalance
changeset 9910 0b2aebc8283e
parent 9908 0fa543611bbe
child 7120 e31767effc16
equal deleted inserted replaced
9909:dce9a6923bb7 9910:0b2aebc8283e
   232 
   232 
   233 		/* draw the flag plus orders */
   233 		/* draw the flag plus orders */
   234 		DrawSprite(v->vehstatus & VS_STOPPED ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, PAL_NONE, 2, w->widget[5].top + 1);
   234 		DrawSprite(v->vehstatus & VS_STOPPED ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, PAL_NONE, 2, w->widget[5].top + 1);
   235 		DrawStringCenteredTruncated(w->widget[5].left + 8, w->widget[5].right, w->widget[5].top + 1, str, 0);
   235 		DrawStringCenteredTruncated(w->widget[5].left + 8, w->widget[5].right, w->widget[5].top + 1, str, 0);
   236 		DrawWindowViewport(w);
   236 		DrawWindowViewport(w);
   237 	}	break;
   237 	} break;
   238 
   238 
   239 	case WE_CLICK: {
   239 	case WE_CLICK: {
   240 		int wid = e->we.click.widget;
   240 		int wid = e->we.click.widget;
   241 		Vehicle *v = GetVehicle(w->window_number);
   241 		Vehicle *v = GetVehicle(w->window_number);
   242 
   242