forked from mirror/OpenTTD
(svn r17202) -Codechange: News item is already given as argument.
This commit is contained in:
@@ -190,7 +190,6 @@ struct NewsWindow : Window {
|
|||||||
const Window *w = FindWindowById(WC_SEND_NETWORK_MSG, 0);
|
const Window *w = FindWindowById(WC_SEND_NETWORK_MSG, 0);
|
||||||
this->chat_height = (w != NULL) ? w->height : 0;
|
this->chat_height = (w != NULL) ? w->height : 0;
|
||||||
|
|
||||||
this->ni = _forced_news == NULL ? _current_news : _forced_news;
|
|
||||||
this->flags4 |= WF_DISABLE_VP_SCROLL;
|
this->flags4 |= WF_DISABLE_VP_SCROLL;
|
||||||
|
|
||||||
this->FindWindowPlacementAndResize(desc);
|
this->FindWindowPlacementAndResize(desc);
|
||||||
|
Reference in New Issue
Block a user