]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove generator rays from g_drawables before deleting them
authorterencehill <piuntn@gmail.com>
Sat, 10 Sep 2016 15:53:01 +0000 (17:53 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 10 Sep 2016 15:53:01 +0000 (17:53 +0200)
qcsrc/common/gamemodes/gamemode/onslaught/cl_generator.qc

index 54ced2fb1a9a9634ce389f4730d78d4694334270..ac7a066ab17032c3fb0ae3733bdd8ead99c686c8 100644 (file)
@@ -14,6 +14,7 @@ void ons_generator_ray_draw(entity this)
 
        if(this.count > 10)
        {
+               IL_REMOVE(g_drawables, this);
                delete(this);
                return;
        }