mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r4819) -Debug: When clicking on a vehicle in the viewport, the index and address of the vehicle get dumped for "misc" debug levels >= 2
This commit is contained in:
parent
90be3fadf7
commit
26f17e3e01
|
@ -1686,7 +1686,10 @@ void HandleViewportClicked(const ViewPort *vp, int x, int y)
|
|||
CheckClickOnLandscape(vp, x, y);
|
||||
|
||||
v = CheckClickOnVehicle(vp, x, y);
|
||||
if (v != NULL) _on_vehicle_click_proc[v->type - 0x10](v);
|
||||
if (v != NULL) {
|
||||
DEBUG(misc, 2) ("Vehicle %d at %p", v->index, v);
|
||||
_on_vehicle_click_proc[v->type - 0x10](v);
|
||||
}
|
||||
}
|
||||
|
||||
Vehicle *CheckMouseOverVehicle(void)
|
||||
|
|
Loading…
Reference in New Issue