From 9122aa1abd20bf301c4d97bbf3f64dadfe074724 Mon Sep 17 00:00:00 2001 From: Robert Zenz Date: Sun, 13 Sep 2015 14:53:12 +0200 Subject: [PATCH] Fixed look direction randomization. --- mods/spawn_usher/spawnusher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/spawn_usher/spawnusher.lua b/mods/spawn_usher/spawnusher.lua index 4d9ae46..0f82b6c 100644 --- a/mods/spawn_usher/spawnusher.lua +++ b/mods/spawn_usher/spawnusher.lua @@ -189,7 +189,7 @@ function spawnusher.move_player(player) player:setpos(pos) -- Randomize the direction in which the player looks. - player:set_look_yaw(spawnusher.random:next(0, math.rad(360))) + player:set_look_yaw(math.rad(spawnusher.random:next(0, 360))) -- Reset the physics override. player:set_physics_override(spawnusher.player_physics[player:get_player_name()])