Author: cycholka
Date: Mon Jun 23 09:51:26 2008
New Revision: 27426

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27426&view=rev
Log:
Make names of MP games using era player doesn't have display in red with 
(Unknown Era) suffix

Modified:
    trunk/src/multiplayer_lobby.cpp

Modified: trunk/src/multiplayer_lobby.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_lobby.cpp?rev=27426&r1=27425&r2=27426&view=diff
==============================================================================
--- trunk/src/multiplayer_lobby.cpp (original)
+++ trunk/src/multiplayer_lobby.cpp Mon Jun 23 09:51:26 2008
@@ -127,14 +127,14 @@
        SDL_Color font_color;
        if (!game.password_required) {
                font_color = font::BAD_COLOUR;
-       } else if (game.vacant_slots > 0) {
+       } else if (game.vacant_slots > 0 && game.have_era) {
                if (game.reloaded || game.started) {
                        font_color = font::YELLOW_COLOUR;
                } else {
                        font_color = font::GOOD_COLOUR;
                }
        } else {
-               if (game.observers) {
+               if (game.observers && game.have_era) {
                        font_color = font::NORMAL_COLOUR;
                } else {
                        font_color = font::BAD_COLOUR;
@@ -147,7 +147,7 @@
 
        // First line: draw game name
        const surface name_surf(font::get_rendered_text(
-           font::make_text_ellipsis(game.name, font::SIZE_PLUS,
+           font::make_text_ellipsis(game.name + _(" (Unknown Era)"), 
font::SIZE_PLUS,
                (item_rect.x + item_rect.w) - xpos - margin_ - 
status_text_width - h_padding_),
            font::SIZE_PLUS, font_color));
        video().blit_surface(xpos, ypos, name_surf);


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to