summaryrefslogtreecommitdiffstats
path: root/src/trigger.c
diff options
context:
space:
mode:
authorroman65536 <roman65536@yahoo.com>2017-03-15 15:02:39 +0100
committerroman65536 <roman65536@yahoo.com>2017-03-15 15:02:39 +0100
commit3c4de0322a6ad7a3c8c977f7477317500a115179 (patch)
tree9a0c35a2122c1a9fc1720743bb77feb0a90b540b /src/trigger.c
parentc444f0f587a012e7666e6b9f77110b89dd458dbe (diff)
Warnings cleanup and compilation time switches.
Diffstat (limited to 'src/trigger.c')
-rw-r--r--src/trigger.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trigger.c b/src/trigger.c
index 8600fd2..2364bea 100644
--- a/src/trigger.c
+++ b/src/trigger.c
@@ -75,7 +75,9 @@ void set_trigger(int r, int c, int rf, int cf, char * str) {
if (strcmp(get(d,"mode"), "R") == 0) tmp=TRG_READ;
if (strcmp(get(d,"mode"), "W") == 0) tmp=TRG_WRITE;
if (strcmp(get(d,"mode"), "RW")== 0) tmp=TRG_READ | TRG_WRITE;
+#ifdef XLUA
if (strcmp(get(d,"type"), "LUA")== 0) tmp|=TRG_LUA;
+#endif
if (strcmp(get(d,"type"), "C")== 0) {
char * error;
tmp|=TRG_C;
@@ -139,8 +141,10 @@ void do_trigger( struct ent *p , int rw) {
struct trigger *trigger = p->trigger;
if(in_trigger) return;
in_trigger = 1;
+#ifdef XLUA
if ((trigger->flag & TRG_LUA ) == TRG_LUA)
doLuaTrigger_cell(p,rw);
+#endif
if ((trigger->flag & TRG_C ) == TRG_C)
do_C_Trigger_cell(p,rw);
in_trigger = 0;