diff --git a/src/gl/scene/gl_clipper.cpp b/src/gl/scene/gl_clipper.cpp index f82375800a..f21cac6345 100644 --- a/src/gl/scene/gl_clipper.cpp +++ b/src/gl/scene/gl_clipper.cpp @@ -38,10 +38,11 @@ #include "gl/scene/gl_clipper.h" #include "g_levellocals.h" +unsigned Clipper::starttime; Clipper::Clipper() { - starttime = I_MSTime(); + starttime++; } //----------------------------------------------------------------------------- @@ -94,7 +95,7 @@ void Clipper::Clear() cliphead = NULL; silhouette = NULL; - starttime = I_MSTime(); + starttime++; } //----------------------------------------------------------------------------- diff --git a/src/gl/scene/gl_clipper.h b/src/gl/scene/gl_clipper.h index 49b1d469f0..c3897bd56f 100644 --- a/src/gl/scene/gl_clipper.h +++ b/src/gl/scene/gl_clipper.h @@ -30,7 +30,7 @@ class ClipNode class Clipper { - unsigned starttime; + static unsigned starttime; FMemArena nodearena; ClipNode * freelist = nullptr;