make hooks more specific

This commit is contained in:
Ricardo Luís Vaz Silva 2024-08-10 17:12:36 -03:00 committed by Magnus Norddahl
commit 7456c7685b
4 changed files with 50 additions and 9 deletions

View file

@ -7057,8 +7057,18 @@ bool P_ChangeSector(sector_t *sector, int crunch, double amt, int floorOrCeil, b
}
}
LevelMeshUpdater->SectorChanged((void*)sector); // update levelmesh
switch(floorOrCeil)
{ // update levelmesh
case 0:
LevelMeshUpdater->FloorHeightChanged(sector);
break;
case 1:
LevelMeshUpdater->CeilingHeightChanged(sector);
break;
case 2:
LevelMeshUpdater->MidTex3DHeightChanged(sector);
break;
}
return cpos.nofit;
}