fix some of the defrag compat code, start with the shotgun only in CTS
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / race.qc
index dd48d7b3b276bf2c1b8bf205ae2e5a25f05286f7..80072a7361e87f003f3c75fa167a539ec1d7d30e 100644 (file)
@@ -742,7 +742,9 @@ void trigger_race_checkpoint_verify()
                for(trigger = world; (trigger = find(trigger, classname, "trigger_multiple")); )
                        for(targ = world; (targ = find(targ, targetname, trigger.target)); )
                                if (targ.classname == "target_checkpoint" || targ.classname == "target_startTimer" || targ.classname == "target_stopTimer") {
-                                       targ.wait = -2;
+                                       trigger.wait = 0;
+                                       trigger.delay = 0;
+                                       targ.wait = 0;
                                        targ.delay = 0;
 
                     // These just make the game crash on some maps with oddly shaped triggers. 
@@ -750,12 +752,15 @@ void trigger_race_checkpoint_verify()
                     // and often one of them just passed through without being registered. Hope it's fixed  in a better way now.
                     // (happened on item triggers too)
                     //
+                                       //targ.wait = -2;
+                                       //targ.delay = 0;
+
                                        //setsize(targ, trigger.mins, trigger.maxs);
                                        //setorigin(targ, trigger.origin);
                                        //remove(trigger);
                                }
        }
-       remove(self);
+       //remove(self);
        self = oldself;
 }