diff options
author | David Walter Seikel | 2012-02-25 09:43:05 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-25 09:43:05 +1000 |
commit | bd82e0ebd6db7ab7a9577c9ec6d9a9a9c2d73db8 (patch) | |
tree | 47fb8b023eceb67bb94751d307d7486ced3fed0b /LuaSL/src/LuaSL_main.c | |
parent | Partial rewrite of the luaproc messages. Still not fixed yet. (diff) | |
download | SledjHamr-bd82e0ebd6db7ab7a9577c9ec6d9a9a9c2d73db8.zip SledjHamr-bd82e0ebd6db7ab7a9577c9ec6d9a9a9c2d73db8.tar.gz SledjHamr-bd82e0ebd6db7ab7a9577c9ec6d9a9a9c2d73db8.tar.bz2 SledjHamr-bd82e0ebd6db7ab7a9577c9ec6d9a9a9c2d73db8.tar.xz |
Beat the script messsage passing into shape, mostly by knocking large chunks off. lol
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/LuaSL_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c index c03a827..f15ae4a 100644 --- a/LuaSL/src/LuaSL_main.c +++ b/LuaSL/src/LuaSL_main.c | |||
@@ -12,7 +12,7 @@ static Eina_Bool _sleep_timer_cb(void *data) | |||
12 | gameGlobals *game = script->game; | 12 | gameGlobals *game = script->game; |
13 | 13 | ||
14 | PD("Waking up %s", script->SID); | 14 | PD("Waking up %s", script->SID); |
15 | sendToChannel(game, script->SID, "return 0.0", NULL, NULL); | 15 | sendToChannel(game, script->SID, "return 0.0"); |
16 | return ECORE_CALLBACK_CANCEL; | 16 | return ECORE_CALLBACK_CANCEL; |
17 | } | 17 | } |
18 | 18 | ||
@@ -22,7 +22,7 @@ static Eina_Bool _timer_timer_cb(void *data) | |||
22 | gameGlobals *game = script->game; | 22 | gameGlobals *game = script->game; |
23 | 23 | ||
24 | PD("Timer for %s", script->SID); | 24 | PD("Timer for %s", script->SID); |
25 | sendToChannel(game, script->SID, "events.timer()", NULL, NULL); | 25 | sendToChannel(game, script->SID, "events.timer()"); |
26 | return ECORE_CALLBACK_RENEW; | 26 | return ECORE_CALLBACK_RENEW; |
27 | } | 27 | } |
28 | 28 | ||
@@ -82,9 +82,9 @@ void scriptSendBack(void * data) | |||
82 | while (isspace(*temp)) | 82 | while (isspace(*temp)) |
83 | temp++; | 83 | temp++; |
84 | if ('1' == *temp) | 84 | if ('1' == *temp) |
85 | sendToChannel(game, them->SID, "start()", NULL, NULL); | 85 | sendToChannel(game, them->SID, "start()"); |
86 | else | 86 | else |
87 | sendToChannel(game, them->SID, "stop()", NULL, NULL); | 87 | sendToChannel(game, them->SID, "stop()"); |
88 | PD("Stopped %s", them->fileName); | 88 | PD("Stopped %s", them->fileName); |
89 | } | 89 | } |
90 | else | 90 | else |
@@ -191,7 +191,7 @@ static Eina_Bool _data(void *data, int type __UNUSED__, Ecore_Con_Event_Client_D | |||
191 | { | 191 | { |
192 | const char *status = NULL; | 192 | const char *status = NULL; |
193 | 193 | ||
194 | status = sendToChannel(game, SID, command, NULL, NULL); | 194 | status = sendToChannel(game, SID, command); |
195 | if (status) | 195 | if (status) |
196 | PE("Error sending command %s to script %s : %s", command, SID, status); | 196 | PE("Error sending command %s to script %s : %s", command, SID, status); |
197 | } | 197 | } |