- changed line_t's sidenum into sidedef pointers.
SVN r1801 (trunk)
This commit is contained in:
parent
e6aadca409
commit
14a42bbada
28 changed files with 211 additions and 202 deletions
|
|
@ -2163,9 +2163,9 @@ void DLevelScript::SetLineTexture (int lineid, int side, int position, int name)
|
|||
{
|
||||
side_t *sidedef;
|
||||
|
||||
if (lines[linenum].sidenum[side] == NO_SIDE)
|
||||
sidedef = lines[linenum].sidedef[side];
|
||||
if (sidedef == NULL)
|
||||
continue;
|
||||
sidedef = sides + lines[linenum].sidenum[side];
|
||||
|
||||
switch (position)
|
||||
{
|
||||
|
|
@ -2883,15 +2883,15 @@ int DLevelScript::SideFromID(int id, int side)
|
|||
if (id == 0)
|
||||
{
|
||||
if (activationline == NULL) return -1;
|
||||
if (activationline->sidenum[side] == NO_SIDE) return -1;
|
||||
return sides[activationline->sidenum[side]].Index;
|
||||
if (activationline->sidedef[side] == NULL) return -1;
|
||||
return activationline->sidedef[side]->Index;
|
||||
}
|
||||
else
|
||||
{
|
||||
int line = P_FindLineFromID(id, -1);
|
||||
if (line == -1) return -1;
|
||||
if (lines[line].sidenum[side] == NO_SIDE) return -1;
|
||||
return sides[lines[line].sidenum[side]].Index;
|
||||
if (lines[line].sidedef[side] == NULL) return -1;
|
||||
return lines[line].sidedef[side]->Index;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5416,7 +5416,7 @@ int DLevelScript::RunScript ()
|
|||
case PCD_GETLINEROWOFFSET:
|
||||
if (activationline)
|
||||
{
|
||||
PushToStack (sides[activationline->sidenum[0]].GetTextureYOffset(side_t::mid) >> FRACBITS);
|
||||
PushToStack (activationline->sidedef[0]->GetTextureYOffset(side_t::mid) >> FRACBITS);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue