From 393f29907407e68a84e33f7834c878dfe51885a8 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 28 Jul 2019 11:08:20 +0200 Subject: [PATCH] arg:: -grotate --- commandline.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commandline.cpp b/commandline.cpp index 3a935e92..6c0ca5f6 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -158,6 +158,12 @@ int arg::readCommon() { shift(); ld b = argf(); View = View * cspin(1, 2, M_PI * 2 * a / b); } + else if(argis("-grotate")) { + PHASE(3); start_game(); + shift(); int i = argi(); + shift(); int j = argi(); + shift(); View = View * cspin(i, j, argf()); + } else if(argis("-exit")) { PHASE(3); printf("Success.\n"); exit(0);