|
|
@ -69,6 +69,9 @@ local function calculate_rotating_state(player, data) |
|
|
|
state.facedir = fix_rotatable_facedir(state.node, state.facedir) |
|
|
|
state.facedir = fix_rotatable_facedir(state.node, state.facedir) |
|
|
|
state.success = state.facedir and state.facedir ~= state.node.param2 |
|
|
|
state.success = state.facedir and state.facedir ~= state.node.param2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- TODO: Until we have a way to display "rotation non-success", don't show rotation hint at all. |
|
|
|
|
|
|
|
if not state.success then return nil end |
|
|
|
|
|
|
|
|
|
|
|
return state |
|
|
|
return state |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|