synchronize newmap command across clients

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3012 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-14 19:44:55 +00:00
parent 2ad7aa7111
commit ebcf3f46b8
6 changed files with 20 additions and 9 deletions
+10
View File
@@ -498,6 +498,16 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
break;
}
case SV_NEWMAP:
{
int size = getint(p);
if(size>=0) empty_world(size, true);
else empty_world(-1, true);
if(d && d!=player1)
conoutf(size>=0 ? "%s started a new map of size %d" : "%s enlarged the map to size %d", colorname(d), sfactor);
break;
}
case SV_EDITENT: // coop edit of ent
{
uint i = getint(p);