diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2021-06-19 12:25:18 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2021-06-19 12:26:34 -0400 |
commit | d2c16c06a34c501711da6c545ad82c9b04128c2b (patch) | |
tree | 0078b83dd334df204261d466dc6c113f82d3e270 | |
parent | abd7b2e74b038b232058133e83429aee521d3ab0 (diff) |
fix build when lua-devel libs are not available
Without this, the following error occurs:
ld: trigger.o: in function `do_trigger':
sc-im/src/trigger.c:222: undefined reference to `doLuaTrigger_cell'
collect2: error: ld returned 1 exit status
-rw-r--r-- | src/trigger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trigger.c b/src/trigger.c index 803356f..815a3e5 100644 --- a/src/trigger.c +++ b/src/trigger.c @@ -217,10 +217,12 @@ void do_trigger(struct ent *p , int rw) { if(in_trigger) return; in_trigger = 1; +#ifdef XLUA if ((trigger->flag & TRG_LUA ) == TRG_LUA) { sc_info("%d %d", p->row, p->col); doLuaTrigger_cell(p,rw); } +#endif if ((trigger->flag & TRG_C ) == TRG_C) { do_C_Trigger_cell(p,rw); |