mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Fixed lookup sides for 32-bit systems
This commit is contained in:
parent
b9dddfbb23
commit
229d0364d4
2 changed files with 5 additions and 2 deletions
|
@ -1243,6 +1243,9 @@ static int side_get(lua_State *L)
|
|||
return 1;
|
||||
case side_text:
|
||||
{
|
||||
boolean isfrontside;
|
||||
size_t sidei = side-sides;
|
||||
|
||||
if (udmf)
|
||||
{
|
||||
LUA_Deprecated(L, "(sidedef_t).text", "(sidedef_t).line.stringargs");
|
||||
|
@ -1250,7 +1253,7 @@ static int side_get(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
boolean isfrontside = side->line->sidenum[0] == side-sides;
|
||||
isfrontside = side->line->sidenum[0] == sidei;
|
||||
|
||||
lua_pushstring(L, side->line->stringargs[isfrontside ? 0 : 1]);
|
||||
return 1;
|
||||
|
|
|
@ -4005,7 +4005,7 @@ static void P_LinkMapData(void)
|
|||
if (!seg->sidedef)
|
||||
CorruptMapError(va("P_LinkMapData: seg->sidedef is NULL "
|
||||
"(subsector %s, firstline is %d)", sizeu1(i), ss->firstline));
|
||||
if (seg->sidedef - sides < 0 || seg->sidedef - sides > (UINT32)numsides)
|
||||
if (seg->sidedef - sides < 0 || sidei > numsides)
|
||||
CorruptMapError(va("P_LinkMapData: seg->sidedef refers to sidedef %s of %s "
|
||||
"(subsector %s, firstline is %d)", sizeu1(sidei), sizeu2(numsides),
|
||||
sizeu3(i), ss->firstline));
|
||||
|
|
Loading…
Reference in a new issue