- Fixed a GCC/Clang compiler error and a warning.

This commit is contained in:
Edoardo Prezioso 2016-04-21 16:07:41 +02:00
parent 6cfd82f500
commit afa3009f93
2 changed files with 2 additions and 2 deletions

View file

@ -253,7 +253,7 @@ bool P_CreateCeiling(sector_t *sec, DCeiling::ECeiling type, line_t *line, int t
// if ceiling already moving, don't start a second function on it // if ceiling already moving, don't start a second function on it
if (sec->PlaneMoving(sector_t::ceiling)) if (sec->PlaneMoving(sector_t::ceiling))
{ {
return NULL; return false;
} }
// new door thinker // new door thinker

View file

@ -693,7 +693,7 @@ void R_EnterPortal (PortalDrawseg* pds, int depth)
fixed_t starty = viewy; fixed_t starty = viewy;
fixed_t startz = viewz; fixed_t startz = viewz;
DVector3 savedpath[2] = { ViewPath[0], ViewPath[1] }; DVector3 savedpath[2] = { ViewPath[0], ViewPath[1] };
int savedvisibility = camera? camera->renderflags & RF_INVISIBLE : 0; ActorRenderFlags savedvisibility = camera? camera->renderflags & RF_INVISIBLE : ActorRenderFlags::FromInt(0);
CurrentPortalUniq++; CurrentPortalUniq++;