Hotfix: fix compiling

Also an attempt to fix my git problems
This commit is contained in:
jacob1
2013-12-18 13:56:27 -05:00
parent f527782405
commit 7e6a51cdfa
2 changed files with 9 additions and 9 deletions

View File

@@ -185,14 +185,14 @@ if not GetOption("macosx"):
raise SystemExit(1) raise SystemExit(1)
else: else:
env.Append(CPPPATH=[GetOption("lua-dir")]) env.Append(CPPPATH=[GetOption("lua-dir")])
else: try:
try: env.ParseConfig('pkg-config --cflags lua5.1')
env.ParseConfig('pkg-config --cflags lua5.1') env.ParseConfig('pkg-config --libs lua5.1')
except: except:
#Check for Lua lib #Check for Lua lib
if not conf.CheckLib('lua5.1') and not conf.CheckLib('lua-5.1') and not conf.CheckLib('lua51') and not conf.CheckLib('lua'): if not conf.CheckLib('lua5.1') and not conf.CheckLib('lua-5.1') and not conf.CheckLib('lua51') and not conf.CheckLib('lua'):
print "liblua5.1 not found or not installed" print "liblua5.1 not found or not installed"
raise SystemExit(1) raise SystemExit(1)
# if fft is enabled try to parse its config, fail otherwise. # if fft is enabled try to parse its config, fail otherwise.

View File

@@ -73,7 +73,7 @@ int Element_WIFI::update(UPDATE_FUNC_ARGS)
} }
else else
{ {
if ((r&0xFF)==PT_SPRK && parts[r>>8].ctype!=PT_NSCN && parts[r>>8].life>=3) if ((r&0xFF)==PT_SPRK && parts[r>>8].ctype!=PT_NSCN && parts[r>>8].life==3)
{ {
sim->wireless[parts[i].tmp][1] = 1; sim->wireless[parts[i].tmp][1] = 1;
sim->ISWIRE = 2; sim->ISWIRE = 2;