CON: make setting a sector's .wallptr call setfirstwall() instead of setting it directly and corrupting the map

git-svn-id: https://svn.eduke32.com/eduke32@6894 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-05-22 19:03:24 +00:00
parent 712646f713
commit 18a289d762

View file

@ -1117,7 +1117,7 @@ void __fastcall VM_SetSector(int32_t const sectNum, int32_t const labelNum, int3
switch (labelNum) switch (labelNum)
{ {
case SECTOR_WALLPTR: pSector->wallptr = iSet; break; case SECTOR_WALLPTR: setfirstwall(sectNum, iSet); break;
case SECTOR_WALLNUM: pSector->wallnum = iSet; break; case SECTOR_WALLNUM: pSector->wallnum = iSet; break;
case SECTOR_CEILINGZ: pSector->ceilingz = iSet; break; case SECTOR_CEILINGZ: pSector->ceilingz = iSet; break;