From 38fa10326d15ce67bee107a03dc3218d4857f145 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 11 Jul 2020 21:29:32 +1000 Subject: [PATCH] - create engine CCMD `printcoords`. --- source/build/src/engine.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index bc73e5f27..22b9b1afc 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -108,6 +108,15 @@ int32_t circlewall=-1; int16_t editstatus = 0; static fix16_t global100horiz; // (-100..300)-scale horiz (the one passed to drawrooms) +CCMD(printcoords) +{ + Printf("pos.x: %d\n", globalposx); + Printf("pos.y: %d\n", globalposy); + Printf("pos.z: %d\n", globalposz); + Printf("ang: %d\n" , globalang); + Printf("horiz: %d\n", fix16_to_int(global100horiz)); +} + int32_t(*getpalookup_replace)(int32_t davis, int32_t dashade) = NULL; // adapted from build.c