summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-14 19:59:25 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-14 19:59:25 +0000
commit4b4c5a403b01ab57042a5ad61097a300d319ae4f (patch)
tree60b55349123ba3242d97d4fb9f3ca9fa371c8a02 /src/network
parent92d418b031d23cf42a4df09e12945cc4b737bce2 (diff)
downloadopenttd-4b4c5a403b01ab57042a5ad61097a300d319ae4f.tar.xz
(svn r8129) -Codechange: Change data tables to use split off palette map. And
include a file missed last time...
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 0ad804af3..394521811 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -298,13 +298,13 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
// only draw icons if the server is online
if (cur_item->online) {
// draw a lock if the server is password protected.
- if (cur_item->info.use_password) DrawSprite(SPR_LOCK, w->widget[8].left + 5, y - 1);
+ if (cur_item->info.use_password) DrawSprite(SPR_LOCK, PAL_NONE, w->widget[8].left + 5, y - 1);
// draw red or green icon, depending on compatibility with server.
- DrawSprite(SPR_BLOT | (cur_item->info.compatible ? PALETTE_TO_GREEN : (cur_item->info.version_compatible ? PALETTE_TO_YELLOW : PALETTE_TO_RED)), w->widget[8].left + 15, y);
+ DrawSprite(SPR_BLOT, (cur_item->info.compatible ? PALETTE_TO_GREEN : (cur_item->info.version_compatible ? PALETTE_TO_YELLOW : PALETTE_TO_RED)), w->widget[8].left + 15, y);
// draw flag according to server language
- DrawSprite(SPR_FLAGS_BASE + cur_item->info.server_lang, w->widget[8].left + 25, y);
+ DrawSprite(SPR_FLAGS_BASE + cur_item->info.server_lang, PAL_NONE, w->widget[8].left + 25, y);
}
cur_item = cur_item->next;
@@ -845,11 +845,11 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
GfxFillRect(11, y - 1, 154, y + 10, 10); // show highlighted item with a different colour
DoDrawStringTruncated(_network_player_info[company].company_name, 13, y, 16, 135 - 13);
- if (_network_player_info[company].use_password != 0) DrawSprite(SPR_LOCK, 135, y);
+ if (_network_player_info[company].use_password != 0) DrawSprite(SPR_LOCK, PAL_NONE, 135, y);
/* If the company's income was positive puts a green dot else a red dot */
if (_network_player_info[company].income >= 0) income = true;
- DrawSprite(SPR_BLOT | (income ? PALETTE_TO_GREEN : PALETTE_TO_RED), 145, y);
+ DrawSprite(SPR_BLOT, income ? PALETTE_TO_GREEN : PALETTE_TO_RED, 145, y);
pos++;
y += NET_PRC__SIZE_OF_ROW;