(svn r14243) -Fix [FS#2269]: clicking on the smallmap didn't break the "follow vehicle in main viewport".

This commit is contained in:
rubidium 2008-09-04 19:09:31 +00:00
parent 199a53c4ca
commit 236c613365
1 changed files with 1 additions and 0 deletions

View File

@ -901,6 +901,7 @@ public:
Point pt = RemapCoords(this->scroll_x, this->scroll_y, 0);
Window *w = FindWindowById(WC_MAIN_WINDOW, 0);
w->viewport->follow_vehicle = INVALID_VEHICLE;
w->viewport->dest_scrollpos_x = pt.x + ((_cursor.pos.x - this->left + 2) << 4) - (w->viewport->virtual_width >> 1);
w->viewport->dest_scrollpos_y = pt.y + ((_cursor.pos.y - this->top - 16) << 4) - (w->viewport->virtual_height >> 1);