File diff r2115:556698050edb → r2116:ddc2d73f5c38
vehicle.c
Show inline comments
 
@@ -1211,13 +1211,13 @@ Vehicle *CreateEffectVehicleRel(const Ve
 

	
 
static void EffectVehicle_Tick(Vehicle *v)
 
{
 
	_effect_tick_procs[v->subtype](v);
 
}
 

	
 
Vehicle *CheckClickOnVehicle(ViewPort *vp, int x, int y)
 
Vehicle *CheckClickOnVehicle(const ViewPort *vp, int x, int y)
 
{
 
	Vehicle *found = NULL, *v;
 
	uint dist, best_dist = (uint)-1;
 

	
 
	if ( (uint)(x -= vp->left) >= (uint)vp->width ||
 
			 (uint)(y -= vp->top) >= (uint)vp->height)