[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src multiplayer_lobby.cpp
From: |
David White |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src multiplayer_lobby.cpp |
Date: |
Mon, 05 Sep 2005 10:33:47 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <address@hidden> 05/09/05 14:33:46
Modified files:
src : multiplayer_lobby.cpp
Log message:
made game refuse to display game names with special formatting
characters in them
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_lobby.cpp.diff?tr1=1.84&tr2=1.85&r1=text&r2=text
Patches:
Index: wesnoth/src/multiplayer_lobby.cpp
diff -u wesnoth/src/multiplayer_lobby.cpp:1.84
wesnoth/src/multiplayer_lobby.cpp:1.85
--- wesnoth/src/multiplayer_lobby.cpp:1.84 Sun Sep 4 15:52:17 2005
+++ wesnoth/src/multiplayer_lobby.cpp Mon Sep 5 14:33:46 2005
@@ -1,4 +1,4 @@
-/* $Id: multiplayer_lobby.cpp,v 1.84 2005/09/04 15:52:17 Sirp Exp $ */
+/* $Id: multiplayer_lobby.cpp,v 1.85 2005/09/05 14:33:46 Sirp Exp $ */
/*
Copyright (C)
Part of the Battle for Wesnoth Project http://www.wesnoth.org
@@ -189,7 +189,8 @@
str << "(" << _("Shroud") << ")" << COLUMN_SEPARATOR;
}
- std::string name = (**game)["name"];
+ std::string name = (**game)["name"];
+
name.erase(std::remove_if(name.begin(),name.end(),font::is_format_char),name.end());
str << font::make_text_ellipsis(name, font::SIZE_NORMAL,
xscale(300));
- [Wesnoth-cvs-commits] wesnoth/src multiplayer_lobby.cpp,
David White <=