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