mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-02 07:35:08 +02:00
fix indentation
This commit is contained in:
@@ -580,14 +580,14 @@ void handleServerTick (int64_t time_since_last_tick) {
|
|||||||
|
|
||||||
// Move by one block on the X or Z axis
|
// Move by one block on the X or Z axis
|
||||||
// Yaw is set to face in the direction of motion
|
// Yaw is set to face in the direction of motion
|
||||||
if ((r >> 2) & 1) {
|
if ((r >> 2) & 1) {
|
||||||
if ((r >> 1) & 1) { new_x += 1; yaw = 192; }
|
if ((r >> 1) & 1) { new_x += 1; yaw = 192; }
|
||||||
else { new_x -= 1; yaw = 64; }
|
else { new_x -= 1; yaw = 64; }
|
||||||
} else {
|
} else {
|
||||||
if ((r >> 1) & 1) { new_z += 1; yaw = 0; }
|
if ((r >> 1) & 1) { new_z += 1; yaw = 0; }
|
||||||
else { new_z -= 1; yaw = 128; }
|
else { new_z -= 1; yaw = 128; }
|
||||||
}
|
}
|
||||||
// Vary the yaw angle to look just a little less robotic
|
// Vary the yaw angle to look just a little less robotic
|
||||||
yaw += ((r >> 7) & 31) - 16;
|
yaw += ((r >> 7) & 31) - 16;
|
||||||
|
|
||||||
} else { // Hostile mob movement handling
|
} else { // Hostile mob movement handling
|
||||||
|
Reference in New Issue
Block a user