set waypointsprite_initialized only once, not at every frame
authorterencehill <piuntn@gmail.com>
Fri, 19 Nov 2010 23:20:52 +0000 (00:20 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 19 Nov 2010 23:20:52 +0000 (00:20 +0100)
qcsrc/client/waypointsprites.qc

index ee11d11..7df28a9 100644 (file)
@@ -461,6 +461,6 @@ void WaypointSprite_Load()
                        db_put(tempdb, sname, ftos(max(f, stof(db_get(tempdb, sname)))));
                }
                search_end(dh);
+               waypointsprite_initialized = true;
        }
-       waypointsprite_initialized = 1;
 }