aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-14 14:32:49 +1000
committerDavid Walter Seikel2014-05-14 14:32:49 +1000
commitecc9fa8cee890efc3dba0875c426a3c3a2fb9b07 (patch)
tree61466effd7d74979e33b587ddb845f9739e92c13 /lib
parentDisable the testing part of test.lua, so it doesn't flood the screen. (diff)
downloadSledjHamr-ecc9fa8cee890efc3dba0875c426a3c3a2fb9b07.zip
SledjHamr-ecc9fa8cee890efc3dba0875c426a3c3a2fb9b07.tar.gz
SledjHamr-ecc9fa8cee890efc3dba0875c426a3c3a2fb9b07.tar.bz2
SledjHamr-ecc9fa8cee890efc3dba0875c426a3c3a2fb9b07.tar.xz
Display LSL script names instead of lengthy paths and UUIDs.
Diffstat (limited to 'lib')
-rw-r--r--lib/LSL.lua3
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)
775end 776end
776 777
777function waitAndProcess(returnWanted) 778function waitAndProcess(returnWanted)