diff options
Diffstat (limited to '')
-rw-r--r-- | lib/LSL.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua index 3b5ba89..6d84f90 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua | |||
@@ -741,6 +741,7 @@ function LSL.stateChange(x) | |||
741 | if nil ~= currentState.state_exit then | 741 | if nil ~= currentState.state_exit then |
742 | currentState.state_exit(); | 742 | currentState.state_exit(); |
743 | end | 743 | end |
744 | msg("LSL.Lua: State change on " .. scriptName) | ||
744 | currentState = x; | 745 | currentState = x; |
745 | --[[ Never return to the current states event handler. In theory. lol | 746 | --[[ Never return to the current states event handler. In theory. lol |
746 | Notably, it's not actually legal to do a state change from a function, only from handlers. | 747 | Notably, it's not actually legal to do a state change from a function, only from handlers. |
@@ -771,7 +772,7 @@ function LSL.mainLoop(sid, name, x) | |||
771 | 772 | ||
772 | LSL.stateChange(x); | 773 | LSL.stateChange(x); |
773 | waitAndProcess(false) | 774 | waitAndProcess(false) |
774 | msg("LSL.Lua: Script quitting.") | 775 | msg("LSL.Lua: Script quitting " .. scriptName) |
775 | end | 776 | end |
776 | 777 | ||
777 | function waitAndProcess(returnWanted) | 778 | function waitAndProcess(returnWanted) |