summaryrefslogtreecommitdiff
path: root/src/rotating_gate.c
diff options
context:
space:
mode:
authorKDSKardabox <bollygame94@gmail.com>2018-04-18 22:17:23 +0530
committerKDSKardabox <bollygame94@gmail.com>2018-04-18 22:17:23 +0530
commitdc759a501b7dfa183b64ea68fbd9437f04e39e74 (patch)
tree6a49d67e85c57a8de141e809858853e546047c7d /src/rotating_gate.c
parent0bab373f49bec5a945c5e4fa9829397a4dc10415 (diff)
add braces
Diffstat (limited to 'src/rotating_gate.c')
-rw-r--r--src/rotating_gate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rotating_gate.c b/src/rotating_gate.c
index f1cb8d1a0..db5935fc3 100644
--- a/src/rotating_gate.c
+++ b/src/rotating_gate.c
@@ -676,8 +676,9 @@ static void RotatingGate_RotateInDirection(u8 gateId, u32 rotationDirection)
orientation = GATE_ORIENTATION_270;
}
else
+ {
orientation = ++orientation % GATE_ORIENTATION_MAX;
-
+ }
RotatingGate_SetGateOrientation(gateId, orientation);
}