mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 13:10:55 +00:00
Fix NO_LUA compiling
This commit is contained in:
parent
cce5308108
commit
2df4717f18
3 changed files with 9 additions and 1 deletions
|
@ -3197,8 +3197,10 @@ void D_QuitNetGame(void)
|
||||||
|
|
||||||
// abort send/receive of files
|
// abort send/receive of files
|
||||||
CloseNetFile();
|
CloseNetFile();
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
RemoveAllLuaFileTransfers();
|
RemoveAllLuaFileTransfers();
|
||||||
waitingforluafiletransfer = false;
|
waitingforluafiletransfer = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (server)
|
if (server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1126,8 +1126,10 @@ void D_SRB2Main(void)
|
||||||
// can't use sprintf since there is %u in savegamename
|
// can't use sprintf since there is %u in savegamename
|
||||||
strcatbf(savegamename, srb2home, PATHSEP);
|
strcatbf(savegamename, srb2home, PATHSEP);
|
||||||
|
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
snprintf(luafiledir, sizeof luafiledir, "%s" PATHSEP "luafiles", srb2home);
|
snprintf(luafiledir, sizeof luafiledir, "%s" PATHSEP "luafiles", srb2home);
|
||||||
#else
|
#endif
|
||||||
|
#else/*DEFAULTDIR*/
|
||||||
snprintf(srb2home, sizeof srb2home, "%s", userhome);
|
snprintf(srb2home, sizeof srb2home, "%s", userhome);
|
||||||
snprintf(downloaddir, sizeof downloaddir, "%s", userhome);
|
snprintf(downloaddir, sizeof downloaddir, "%s", userhome);
|
||||||
if (dedicated)
|
if (dedicated)
|
||||||
|
@ -1138,8 +1140,10 @@ void D_SRB2Main(void)
|
||||||
// can't use sprintf since there is %u in savegamename
|
// can't use sprintf since there is %u in savegamename
|
||||||
strcatbf(savegamename, userhome, PATHSEP);
|
strcatbf(savegamename, userhome, PATHSEP);
|
||||||
|
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
snprintf(luafiledir, sizeof luafiledir, "%s" PATHSEP "luafiles", userhome);
|
snprintf(luafiledir, sizeof luafiledir, "%s" PATHSEP "luafiles", userhome);
|
||||||
#endif
|
#endif
|
||||||
|
#endif/*DEFAULTDIR*/
|
||||||
}
|
}
|
||||||
|
|
||||||
configfile[sizeof configfile - 1] = '\0';
|
configfile[sizeof configfile - 1] = '\0';
|
||||||
|
|
|
@ -803,9 +803,11 @@ static const char *packettypename[NUMPACKETTYPE] =
|
||||||
"RESYNCHEND",
|
"RESYNCHEND",
|
||||||
"RESYNCHGET",
|
"RESYNCHGET",
|
||||||
|
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
"SENDINGLUAFILE",
|
"SENDINGLUAFILE",
|
||||||
"ASKLUAFILE",
|
"ASKLUAFILE",
|
||||||
"HASLUAFILE",
|
"HASLUAFILE",
|
||||||
|
#endif
|
||||||
|
|
||||||
"FILEFRAGMENT",
|
"FILEFRAGMENT",
|
||||||
"TEXTCMD",
|
"TEXTCMD",
|
||||||
|
|
Loading…
Reference in a new issue