- minor bit of cleanup of tags code.
This commit is contained in:
parent
f983f778f2
commit
f65a07c952
4 changed files with 11 additions and 9 deletions
|
|
@ -778,6 +778,7 @@ public:
|
|||
bool strifetrans = false;
|
||||
bool strifetrans2 = false;
|
||||
FString arg0str, arg1str;
|
||||
int lineid; // forZDoomTranslated namespace
|
||||
|
||||
memset(ld, 0, sizeof(*ld));
|
||||
ld->Alpha = FRACUNIT;
|
||||
|
|
@ -814,7 +815,8 @@ public:
|
|||
continue;
|
||||
|
||||
case NAME_Id:
|
||||
ld->SetMainId(CheckInt(key));
|
||||
lineid = CheckInt(key);
|
||||
ld->SetMainId(lineid);
|
||||
continue;
|
||||
|
||||
case NAME_Sidefront:
|
||||
|
|
@ -1067,7 +1069,7 @@ public:
|
|||
maplinedef_t mld;
|
||||
memset(&mld, 0, sizeof(mld));
|
||||
mld.special = ld->special;
|
||||
mld.tag = ld->GetMainId();
|
||||
mld.tag = lineid;
|
||||
P_TranslateLineDef(ld, &mld, false);
|
||||
ld->flags = saved | (ld->flags&(ML_MONSTERSCANACTIVATE|ML_REPEAT_SPECIAL|ML_FIRSTSIDEONLY));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue