StringTable cleanup and improvements
cleaned up function interface to avoid referencing the file system in the worker functions. replaced StringTable's operators with functions.. The main reason is that these are far easier to look up when browsing the source. This also fixes a premature translation in SBARINFO that was done in the parsing stage, not the printing stage.
This commit is contained in:
parent
f4a42dae1d
commit
ebd4ebf298
50 changed files with 245 additions and 246 deletions
|
|
@ -589,7 +589,7 @@ static void HandleReply(player_t *player, bool isconsole, int nodenum, int reply
|
|||
const char *log = reply->LogString.GetChars();
|
||||
if (log[0] == '$')
|
||||
{
|
||||
log = GStrings(log + 1);
|
||||
log = GStrings.GetString(log + 1);
|
||||
}
|
||||
|
||||
player->SetLogText(log);
|
||||
|
|
@ -713,7 +713,7 @@ static void TerminalResponse (const char *str)
|
|||
// handle string table replacement
|
||||
if (str[0] == '$')
|
||||
{
|
||||
str = GStrings(str + 1);
|
||||
str = GStrings.GetString(str + 1);
|
||||
}
|
||||
|
||||
if (StatusBar != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue