From cd2c4bc85b6c8d4b61d9f9dd47f2730b93c3ddf0 Mon Sep 17 00:00:00 2001 From: flowtron Date: Fri, 30 Jul 2010 18:31:39 +0000 Subject: [PATCH] showmapdims - maybe useful for mappers git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5481 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/worldio.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index b3d912e2..f68c73d4 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -441,6 +441,14 @@ void save_world(char *mname) conoutf("wrote map file %s", cgzname); } +void showmapdims() +{ + conoutf(" min X|Y: %3d : %3d", mapdims[0], mapdims[1]); + conoutf(" max X|Y: %3d : %3d", mapdims[2], mapdims[3]); + conoutf("delta X|Y: %3d : %3d", mapdims[4], mapdims[5]); +} +COMMAND(showmapdims, ARG_NONE); + extern void preparectf(bool cleanonly = false); int numspawn[3], maploaded = 0, numflagspawn[2]; VAR(curmaprevision, 1, 0, 0);