Put back the tip of the day...

...since it is one of the few rightful users of the empty symbol 'feature'.
This commit is contained in:
Guillaume Melquiond 2004-10-19 07:38:51 +00:00
parent 90c2d8d23c
commit ab86dc247a

View file

@ -91,7 +91,13 @@ const std::string& get_tip_of_day(int* ntip)
}
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;
}