Updated ZSprites to use new translation code.
This commit is contained in:
parent
8fcd2c5f43
commit
1f847301cb
2 changed files with 8 additions and 5 deletions
|
|
@ -1003,7 +1003,8 @@ void DZSprite::Construct()
|
|||
LightLevel = -1;
|
||||
Texture = FTextureID();
|
||||
Style = STYLE_Normal;
|
||||
Translation = Flags = 0;
|
||||
Flags = 0;
|
||||
Translation = NO_TRANSLATION;
|
||||
sub = nullptr;
|
||||
cursector = nullptr;
|
||||
scolor = 0xffffff;
|
||||
|
|
@ -1164,12 +1165,12 @@ void DZSprite::SetTranslation(FName trname)
|
|||
if (trname.GetChars()[0] == 0)
|
||||
{
|
||||
// '' removes it
|
||||
Translation = 0;
|
||||
Translation = NO_TRANSLATION;
|
||||
return;
|
||||
}
|
||||
|
||||
int tnum = R_FindCustomTranslation(trname);
|
||||
if (tnum >= 0)
|
||||
auto tnum = R_FindCustomTranslation(trname);
|
||||
if (tnum != INVALID_TRANSLATION)
|
||||
{
|
||||
Translation = tnum;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue