From ed6ad6de6d95990d977ac63f4bc6bf801801b110 Mon Sep 17 00:00:00 2001 From: p2r3 Date: Fri, 22 Aug 2025 15:57:41 +0300 Subject: [PATCH] fix indentation --- src/procedures.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/procedures.c b/src/procedures.c index a4e977f..cf98b08 100644 --- a/src/procedures.c +++ b/src/procedures.c @@ -580,14 +580,14 @@ void handleServerTick (int64_t time_since_last_tick) { // Move by one block on the X or Z axis // Yaw is set to face in the direction of motion - if ((r >> 2) & 1) { - if ((r >> 1) & 1) { new_x += 1; yaw = 192; } - else { new_x -= 1; yaw = 64; } - } else { - if ((r >> 1) & 1) { new_z += 1; yaw = 0; } - else { new_z -= 1; yaw = 128; } - } - // Vary the yaw angle to look just a little less robotic + if ((r >> 2) & 1) { + if ((r >> 1) & 1) { new_x += 1; yaw = 192; } + else { new_x -= 1; yaw = 64; } + } else { + if ((r >> 1) & 1) { new_z += 1; yaw = 0; } + else { new_z -= 1; yaw = 128; } + } + // Vary the yaw angle to look just a little less robotic yaw += ((r >> 7) & 31) - 16; } else { // Hostile mob movement handling