]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix wrong parameters sending prevent join message
authorterencehill <piuntn@gmail.com>
Fri, 8 Mar 2013 21:15:35 +0000 (22:15 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 8 Mar 2013 21:15:35 +0000 (22:15 +0100)
qcsrc/server/cl_client.qc
qcsrc/server/command/cmd.qc

index 7633e5ff2385e2460e7dcb55995914f14c8cfaac..0ef81002416112d5ec02049983080c9a0af0a427 100644 (file)
@@ -2349,7 +2349,7 @@ void LeaveSpectatorMode()
        else
        {
                // Player may not join because g_maxplayers is set
-               Send_Notification(NOTIF_ONE_ONLY, self, MSG_CENTER_CPID, CPID_PREVENT_JOIN);
+               Send_Notification(NOTIF_ONE_ONLY, self, MSG_CENTER, CENTER_JOIN_PREVENT);
        }
 }
 
index f97ef15e4391ad50781c21097c8867041090799c..d363de52759811d727c8bc232bbbaf536bfd9544 100644 (file)
@@ -166,7 +166,7 @@ void ClientCommand_join(float request)
                                        else 
                                        {
                                                //player may not join because of g_maxplayers is set
-                                               Send_Notification(NOTIF_ONE_ONLY, self, MSG_CENTER_CPID, CPID_PREVENT_JOIN);
+                                               Send_Notification(NOTIF_ONE_ONLY, self, MSG_CENTER, CENTER_JOIN_PREVENT);
                                        }
                                }
                        }