(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.

This commit is contained in:
rubidium
2008-05-17 13:01:30 +00:00
parent 8b54212900
commit 87015f5b63
16 changed files with 61 additions and 30 deletions

View File

@@ -590,11 +590,8 @@ void Vehicle::PreDestructor()
delete this->Next();
}
Window *w = FindWindowById(WC_MAIN_WINDOW, 0);
if (w != NULL && w->viewport->follow_vehicle == this->index) {
ScrollMainWindowTo(this->x_pos, this->y_pos, true); // lock the main view on the vehicle's last position
w->viewport->follow_vehicle = INVALID_VEHICLE;
}
extern void StopGlobalFollowVehicle(const Vehicle *v);
StopGlobalFollowVehicle(this);
}
Vehicle::~Vehicle()