diff options
author | David Walter Seikel | 2014-05-14 16:19:00 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-14 16:19:00 +1000 |
commit | a9c6394c4332c6cc023fca1a31e29383a7d68e72 (patch) | |
tree | eb65ada17b8ed625e1a207f2897062ae4844c8fb | |
parent | Implement faked llGetLinkNumber() and llMessageLinked(). (diff) | |
download | SledjHamr-a9c6394c4332c6cc023fca1a31e29383a7d68e72.zip SledjHamr-a9c6394c4332c6cc023fca1a31e29383a7d68e72.tar.gz SledjHamr-a9c6394c4332c6cc023fca1a31e29383a7d68e72.tar.bz2 SledjHamr-a9c6394c4332c6cc023fca1a31e29383a7d68e72.tar.xz |
Shut up some excess debugs.
-rw-r--r-- | lib/LSL.lua | 4 | ||||
-rw-r--r-- | src/LuaSL/LuaSL_main.c | 6 |
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) |
778 | end | 778 | end |
779 | 779 | ||
780 | function waitAndProcess(returnWanted) | 780 | function 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); |