From 2ba05f898759269ba72b2ffd73aed7268e0ff56e Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 May 2008 22:53:49 +0000 Subject: (svn r13021) -Codechange: free data_b for other uses when it is not used to store a second tile to skip to (in news messages). Patch by cirdan. --- src/news_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/news_gui.cpp') diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 2b1bacb6a..cd0482539 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -209,11 +209,11 @@ static void NewsWindowProc(Window *w, WindowEvent *e) } else if (ni->flags & NF_TILE) { if (_ctrl_pressed) { ShowExtraViewPortWindow(ni->data_a); - if (ni->data_b != 0) { + if (ni->flags & NF_TILE2) { ShowExtraViewPortWindow(ni->data_b); } } else { - if (!ScrollMainWindowToTile(ni->data_a) && ni->data_b != 0) { + if (!ScrollMainWindowToTile(ni->data_a) && ni->flags & NF_TILE2) { ScrollMainWindowToTile(ni->data_b); } } -- cgit v1.2.3-54-g00ecf