]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 ee11d11ed0830db7c755048ec6b1d4221db7757d..7df28a96bab6e13f82f7e5e1f9791a9962045fb3 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;
 }