From 5cdcb1a080197e7aec364e1fdf6c0a568b6f2abf Mon Sep 17 00:00:00 2001 From: ac_stef Date: Sat, 23 May 2009 13:02:57 +0000 Subject: [PATCH] fix 'curmap'; remove 'mapname' git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4429 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 2000fef9..617a169b 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -33,9 +33,6 @@ extern int framesinmap; char *getclientmap() { return clientmap; } -void mapname() { result(getclientmap()); } -COMMAND(mapname, ARG_NONE); - extern bool c2sinit, sendmapidenttoserver; void setskin(playerent *pl, uint skin) @@ -145,11 +142,7 @@ VARNP(skin, nextskin, 0, 0, 1000); int curteam() { return team_int(player1->team); } int currole() { return player1->clientrole; } int curmode() { return gamemode; } -void curmap(int cleaned) -{ - extern string smapname; - result(cleaned ? behindpath(smapname) : smapname); -} +void curmap(int cleaned) { result(cleaned ? behindpath(getclientmap()) : getclientmap()); } COMMANDN(team, newteam, ARG_1STR); COMMANDN(name, newname, ARG_1STR);