]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Set spawnpoint's team when updating
authorMario <mario@smbclan.net>
Wed, 13 Jul 2016 07:58:11 +0000 (17:58 +1000)
committerMario <mario@smbclan.net>
Wed, 13 Jul 2016 07:58:11 +0000 (17:58 +1000)
qcsrc/client/main.qc

index 7c39500c00c9232746bd70d36a8f7200576a7493..b3ecce0bf187ad308f811c51782d23d148bab697 100644 (file)
@@ -684,6 +684,8 @@ NET_HANDLE(ENT_CLIENT_SPAWNPOINT, bool is_new)
        spn_origin.y = ReadCoord();
        spn_origin.z = ReadCoord();
 
+       this.team = teamnum;
+
        //if(is_new)
        //{
                this.origin = spn_origin;