From 14189c4cae047b4429098829b549258de6b38f29 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 18 Oct 2008 07:43:51 +0000 Subject: [PATCH] check if mapstartonce is not "" git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3121 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index af7152f2..746f2c63 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -730,7 +730,7 @@ void startmap(const char *name, bool reset) // called just after a map load } // execute mapstart event const char *mapstartonce = getalias("mapstartonce"); - if(mapstartonce) + if(mapstartonce && mapstartonce[0]) { addsleep(0, mapstartonce); // do this as a sleep to make sure map changes don't recurse inside a welcome packet alias("mapstartonce", "");