]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc
Merge branch 'master' into terencehill/lms_spec
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / lms / sv_lms.qc
index 013de60d664cc02022e3d9f2bb395a9c2f6d9ed0..7139a7b2e134ccd45a47365dbad9d732b6f76f44 100644 (file)
@@ -112,7 +112,7 @@ int WinningCondition_LMS()
                        else
                        {
                                // a winner!
-                               // and assign him his first place
+                               // and assign them their first place
                                GameRules_scoring_add(first_player, LMS_RANK, 1);
                                first_player.winning = 1;
                                return WINNING_YES;
@@ -678,10 +678,9 @@ MUTATOR_HOOKFUNCTION(lms, OnEntityPreSpawn)
        entity e = spawn();
        setthink(e, lms_extralife);
 
+       Item_CopyFields(ent, e);
+
        e.nextthink = time + 0.1;
-       e.spawnflags = ent.spawnflags;
-       e.noalign = ent.noalign;
-       setorigin(e, ent.origin);
 
        return true;
 }