Remove usage of non-standard 'strupr'
This commit is contained in:
parent
2b87dc8f9f
commit
01aaabf4aa
1 changed files with 3 additions and 1 deletions
|
@ -881,7 +881,9 @@ void update_tree_1_2(Level& l,bool verbose)
|
|||
special_macro = "{WEAPON_SPECIAL_" + spec.substr(0,6) + "_TYPE " + spec.substr(6) + "}";
|
||||
}
|
||||
l.tag = "specials";
|
||||
str_upr(const_cast<char*>(special_macro.c_str()));
|
||||
for(int c = 0; c < special_macro.size(); ++c) {
|
||||
special_macro[c] = toupper(special_macro[c]);
|
||||
}
|
||||
l.add_child(new Level(special_macro,&l));
|
||||
if(verbose) {
|
||||
std::cerr << "updating special...\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue