forked from mirror/OpenTTD
(svn r1211) -Feature: Introduce sticky windows to all vehicle windows...Just make sure you do not sticky more than 23 at a time. Also a lot of places in the code invalidated the 'status bar' of the vehicle, referring to it as widget 4. This is now widget 5 and has been #definitized
This commit is contained in:
@@ -675,7 +675,12 @@ void UnclickSomeWindowButtons(Window *w, uint32 mask)
|
||||
|
||||
void UnclickWindowButtons(Window *w)
|
||||
{
|
||||
bool sticky = false;
|
||||
if (w->desc_flags & WDF_STICKY_BUTTON && HASBIT(w->click_state, 2)) sticky = true;
|
||||
|
||||
UnclickSomeWindowButtons(w, (uint32)-1);
|
||||
|
||||
if (sticky) SETBIT(w->click_state, 2);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user