- refactored all places which treated FileData as zero terminated.
This commit is contained in:
parent
79e6d068a9
commit
2c2bf0265f
19 changed files with 63 additions and 47 deletions
|
|
@ -320,7 +320,7 @@ bool FIntermissionActionTextscreen::ParseKey(FScanner &sc)
|
|||
}
|
||||
}
|
||||
if (!done)
|
||||
mText = fileSystem.ReadFile(lump).GetString();
|
||||
mText = GetStringFromLump(lump);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -864,7 +864,7 @@ DIntermissionController* F_StartFinale (const char *music, int musicorder, int c
|
|||
int lump = fileSystem.CheckNumForFullName(text, true);
|
||||
if (lump > 0)
|
||||
{
|
||||
textscreen->mText = fileSystem.ReadFile(lump).GetString();
|
||||
textscreen->mText = GetStringFromLump(lump);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue