aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--lib/LSL.lua4
-rw-r--r--src/LuaSL/LuaSL_main.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua
index 092c3d9..948f22d 100644
--- a/lib/LSL.lua
+++ b/lib/LSL.lua
@@ -743,7 +743,7 @@ function LSL.stateChange(x)
743 if nil ~= currentState.state_exit then 743 if nil ~= currentState.state_exit then
744 currentState.state_exit(); 744 currentState.state_exit();
745 end 745 end
746 msg("LSL.Lua: State change on " .. scriptName) 746-- msg("LSL.Lua: State change on " .. scriptName)
747 currentState = x; 747 currentState = x;
748 --[[ Never return to the current states event handler. In theory. lol 748 --[[ Never return to the current states event handler. In theory. lol
749 Notably, it's not actually legal to do a state change from a function, only from handlers. 749 Notably, it's not actually legal to do a state change from a function, only from handlers.
@@ -774,7 +774,7 @@ function LSL.mainLoop(sid, name, x)
774 774
775 LSL.stateChange(x); 775 LSL.stateChange(x);
776 waitAndProcess(false) 776 waitAndProcess(false)
777 msg("LSL.Lua: Script quitting " .. scriptName) 777-- msg("LSL.Lua: Script quitting " .. scriptName)
778end 778end
779 779
780function waitAndProcess(returnWanted) 780function waitAndProcess(returnWanted)
diff --git a/src/LuaSL/LuaSL_main.c b/src/LuaSL/LuaSL_main.c
index 017c742..4d589a1 100644
--- a/src/LuaSL/LuaSL_main.c
+++ b/src/LuaSL/LuaSL_main.c
@@ -13,7 +13,7 @@ static Eina_Bool _sleep_timer_cb(void *data)
13 script *script = data; 13 script *script = data;
14 gameGlobals *ourGlobals = script->game; 14 gameGlobals *ourGlobals = script->game;
15 15
16 PD("Waking up %s", script->name); 16// PD("Waking up %s", script->name);
17 sendToChannel(ourGlobals, script->SID, "return 0.0"); 17 sendToChannel(ourGlobals, script->SID, "return 0.0");
18 return ECORE_CALLBACK_CANCEL; 18 return ECORE_CALLBACK_CANCEL;
19} 19}
@@ -49,7 +49,7 @@ static void resetScript(script *victim)
49 script *me; 49 script *me;
50 char buf[PATH_MAX]; 50 char buf[PATH_MAX];
51 51
52 PD("RESETTING %s", victim->name); 52// PD("RESETTING %s", victim->name);
53 sendToChannel(ourGlobals, victim->SID, "quit()"); 53 sendToChannel(ourGlobals, victim->SID, "quit()");
54 54
55 eina_hash_del(ourGlobals->scripts, victim->SID, NULL); 55 eina_hash_del(ourGlobals->scripts, victim->SID, NULL);
@@ -111,7 +111,7 @@ void scriptSendBack(void * data)
111 sendToChannel(ourGlobals, them->SID, "start()"); 111 sendToChannel(ourGlobals, them->SID, "start()");
112 else 112 else
113 sendToChannel(ourGlobals, them->SID, "stop()"); 113 sendToChannel(ourGlobals, them->SID, "stop()");
114 PD("Stopped %s", them->name); 114// PD("Stopped %s", them->name);
115 } 115 }
116 else 116 else
117 PE("Missing script state in llSetScriptState(%s, )", them->name); 117 PE("Missing script state in llSetScriptState(%s, )", them->name);