- initialize portals with all other static line specials instead of doing it separately in P_FinishLoadingLineDefs when the map isn't fully set up yet.

- replace all float use in portal.cpp with doubles.
This commit is contained in:
Christoph Oelckers 2016-02-05 16:58:57 +01:00
commit 9eaefc3685
4 changed files with 48 additions and 49 deletions

View file

@ -64,6 +64,7 @@
#include "a_keys.h"
#include "c_dispatch.h"
#include "r_sky.h"
#include "portal.h"
// State.
#include "r_state.h"
@ -1428,6 +1429,10 @@ void P_SpawnSpecials (void)
}
break;
case Line_SetPortal:
P_SpawnLinePortal(&lines[i]);
break;
// [RH] ZDoom Static_Init settings
case Static_Init:
switch (lines[i].args[1])