policy on race/palette changes
This commit is contained in:
@@ -260,6 +260,14 @@ namespace OpenRA.Server
|
|||||||
{ "race",
|
{ "race",
|
||||||
s =>
|
s =>
|
||||||
{
|
{
|
||||||
|
if (conn.IsReady)
|
||||||
|
{
|
||||||
|
DispatchOrdersToClient(conn, 0,
|
||||||
|
new ServerOrder( conn.PlayerIndex, "Chat",
|
||||||
|
"You can't change your race after the game has started" ).Serialize() );
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
int race;
|
int race;
|
||||||
if (!int.TryParse(s, out race) || race < 0 || race > 1)
|
if (!int.TryParse(s, out race) || race < 0 || race > 1)
|
||||||
{
|
{
|
||||||
@@ -274,6 +282,14 @@ namespace OpenRA.Server
|
|||||||
{ "pal",
|
{ "pal",
|
||||||
s =>
|
s =>
|
||||||
{
|
{
|
||||||
|
if (conn.IsReady)
|
||||||
|
{
|
||||||
|
DispatchOrdersToClient(conn, 0,
|
||||||
|
new ServerOrder( conn.PlayerIndex, "Chat",
|
||||||
|
"You can't change your color after the game has started" ).Serialize() );
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
int pal;
|
int pal;
|
||||||
if (!int.TryParse(s, out pal) || pal < 0 || pal > 7)
|
if (!int.TryParse(s, out pal) || pal < 0 || pal > 7)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user