(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:
celestar 2006-05-11 05:32:26 +00:00
parent 90be3fadf7
commit 26f17e3e01
1 changed files with 4 additions and 1 deletions

View File

@ -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)