CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 05/06/04 01:33:11
Modified files:
src : help.cpp
Log message:
got rid of bad 'Plague(Walking Corpse)' help topic
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/help.cpp.diff?tr1=1.104&tr2=1.105&r1=text&r2=text
Patches:
Index: wesnoth/src/help.cpp
diff -u wesnoth/src/help.cpp:1.104 wesnoth/src/help.cpp:1.105
--- wesnoth/src/help.cpp:1.104 Thu Jun 2 20:50:26 2005
+++ wesnoth/src/help.cpp Sat Jun 4 01:33:10 2005
@@ -947,7 +947,11 @@
std::vector<attack_type> attacks = type.attacks();
for (std::vector<attack_type>::const_iterator it =
attacks.begin();
it != attacks.end(); it++) {
- const std::string special = (*it).special();
+ std::string special = (*it).special();
+
+ //some abilities like plague can be in the form
ability(argument)
+ //make sure we cut off the argument
+
special.erase(std::find(special.begin(),special.end(),'('),special.end());
if (special != "") {
if (checked_specials.find(special) ==
checked_specials.end()) {
std::string lang_special =
gettext(special.c_str());