summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-11 13:02:58 +0000
committerrubidium <rubidium@openttd.org>2008-05-11 13:02:58 +0000
commit4a46a5cddaac140458d8cae738c4556260338e22 (patch)
tree83c5a87989279c5da47250b5a73adfd355af50e1
parentd8a6bb392a39460a1fec40522a4d07d841a9b0f6 (diff)
downloadopenttd-4a46a5cddaac140458d8cae738c4556260338e22.tar.xz
(svn r13043) -Codechange: remove some duplicate variables from news_d.
-rw-r--r--src/network/network_gui.cpp18
-rw-r--r--src/news_gui.cpp5
2 files changed, 0 insertions, 23 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 41d03e4a2..aa0058464 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -37,24 +37,6 @@
#define BGC 5
#define BTC 15
-/*
-struct network_d {
- byte field; // select text-field in start-server and game-listing
- byte widget_id; ///< The widget that has the pop-up input menu
- byte field; // select text-field in start-server and game-listing
- NetworkGameList *server; // selected server in lobby and game-listing
- FiosItem *map; // selected map in start-server
-};
-assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(network_d));
-
-struct network_ql_d {
- network_d n; // see above; general stuff
- querystr_d q; // text-input in start-server and game-listing
- list_d l; // accompanying list-administration
-};
-assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(network_ql_d));
-*/
-
/* Global to remember sorting after window has been closed */
static Listing _ng_sorting;
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 0d01c8d42..33b1ff236 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -61,12 +61,7 @@ static NewsID _oldest_news = 0; ///< points to first item in fifo qu
static NewsID _latest_news = INVALID_NEWS; ///< points to last item in fifo queue
struct news_d : vp_d {
- uint16 follow_vehicle;
uint16 chat_height;
- int32 scrollpos_x;
- int32 scrollpos_y;
- int32 dest_scrollpos_x;
- int32 dest_scrollpos_y;
NewsItem *ni;
};
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(news_d));