wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src titlescreen.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src titlescreen.cpp
Date: Tue, 19 Oct 2004 03:46:10 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/10/19 07:38:51

Modified files:
        src            : titlescreen.cpp 

Log message:
        Put back the tip of the day since it is one of the few rightful users 
of the empty symbol 'feature'.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/titlescreen.cpp.diff?tr1=1.24&tr2=1.25&r1=text&r2=text

Patches:
Index: wesnoth/src/titlescreen.cpp
diff -u wesnoth/src/titlescreen.cpp:1.24 wesnoth/src/titlescreen.cpp:1.25
--- wesnoth/src/titlescreen.cpp:1.24    Wed Oct 13 19:33:50 2004
+++ wesnoth/src/titlescreen.cpp Tue Oct 19 07:38:51 2004
@@ -91,7 +91,13 @@
        }
 
        int ntips = 0;
+       /*
+       It is probably the only part of the code where it makes sense for 
string_table
+       to send back an empty string. So let's avoid this problem while the 
"UNTBL" hack
+       is in effect. -- silene
        while(ntips < 1000 && string_table["tip_of_day" + str_cast(ntips+1)] != 
"") {
+       */
+       while(ntips < 1000 && string_table["tip_of_day" + 
str_cast(ntips+1)].substr(0, 5) != "UNTLB") {
                ++ntips;
        }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]