- Make the autosegs read-only.
- Derive PClass from dobject.cpp. This has one major ramification: Since the PClass is not allocated until runtime, you cannot initialize any static/global data structures with pointers to PClasses using RUNTIME_CLASS. Attempting to do so will just initialize with a NULL pointer. Instead, you can initialize using the address of the pointer returned by RUNTIME_CLASS and dereference that. By the time you have an opportunity to dereference it, it will no longer be NULL. - Sync CmakeLists.txt. - Random fixes for problems GCC spotted. SVN r1852 (scripting)
This commit is contained in:
parent
92766165f5
commit
1eb7912bd8
35 changed files with 258 additions and 207 deletions
|
|
@ -624,11 +624,11 @@ static void LoadWalls (walltype *walls, int numwalls, sectortype *bsec)
|
|||
int sidenum = int(intptr_t(lines[linenum].sidedef[1]));
|
||||
if (bsec->floorstat & 64)
|
||||
{ // floor is aligned to first wall
|
||||
R_AlignFlat (linenum, sidenum == (DWORD)bsec->wallptr, 0);
|
||||
R_AlignFlat (linenum, (DWORD)sidenum == (DWORD)bsec->wallptr, 0);
|
||||
}
|
||||
if (bsec->ceilingstat & 64)
|
||||
{ // ceiling is aligned to first wall
|
||||
R_AlignFlat (linenum, sidenum == (DWORD)bsec->wallptr, 0);
|
||||
R_AlignFlat (linenum, (DWORD)sidenum == (DWORD)bsec->wallptr, 0);
|
||||
}
|
||||
}
|
||||
for(i = 0; i < numsides; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue