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
|
|
@ -7700,7 +7700,7 @@ const char *AActor::GetTag(const char *def) const
|
|||
const char *tag = Tag->GetChars();
|
||||
if (tag[0] == '$')
|
||||
{
|
||||
return GStrings(tag + 1);
|
||||
return GStrings.GetString(tag + 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -7730,7 +7730,7 @@ const char *AActor::GetCharacterName() const
|
|||
const char *cname = Conversation->SpeakerName.GetChars();
|
||||
if (cname[0] == '$')
|
||||
{
|
||||
return GStrings(cname + 1);
|
||||
return GStrings.GetString(cname + 1);
|
||||
}
|
||||
else return cname;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue