From c5b7e83147dc095cc8961467bca950b69a28c790 Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Sat, 3 Jul 2010 01:09:50 +0000 Subject: [PATCH] startmapalways (testing) git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5271 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index ff4a8ea7..5773418e 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -874,7 +874,7 @@ void startmap(const char *name, bool reset) // called just after a map load persistidents = true; firstrun = false; } - // execute mapstart event + // execute mapstart event once const char *mapstartonce = getalias("mapstartonce"); if(mapstartonce && mapstartonce[0]) { @@ -882,6 +882,12 @@ void startmap(const char *name, bool reset) // called just after a map load // BTW: in v1.0.4 sleep 1 was required to make it work on initial mapload [flowtron:2010jun25] alias("mapstartonce", ""); } + // execute mapstart event + const char *mapstartalways = getalias("mapstartalways"); + if(mapstartalways && mapstartalways[0]) + { + addsleep(0, mapstartalways); + } } void suicide()