mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 05:00:46 +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
|
||||
CloseNetFile();
|
||||
#ifdef HAVE_BLUA
|
||||
RemoveAllLuaFileTransfers();
|
||||
waitingforluafiletransfer = false;
|
||||
#endif
|
||||
|
||||
if (server)
|
||||
{
|
||||
|
|
|
@ -1126,8 +1126,10 @@ void D_SRB2Main(void)
|
|||
// can't use sprintf since there is %u in savegamename
|
||||
strcatbf(savegamename, srb2home, PATHSEP);
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
snprintf(luafiledir, sizeof luafiledir, "%s" PATHSEP "luafiles", srb2home);
|
||||
#else
|
||||
#endif
|
||||
#else/*DEFAULTDIR*/
|
||||
snprintf(srb2home, sizeof srb2home, "%s", userhome);
|
||||
snprintf(downloaddir, sizeof downloaddir, "%s", userhome);
|
||||
if (dedicated)
|
||||
|
@ -1138,8 +1140,10 @@ void D_SRB2Main(void)
|
|||
// can't use sprintf since there is %u in savegamename
|
||||
strcatbf(savegamename, userhome, PATHSEP);
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
snprintf(luafiledir, sizeof luafiledir, "%s" PATHSEP "luafiles", userhome);
|
||||
#endif
|
||||
#endif/*DEFAULTDIR*/
|
||||
}
|
||||
|
||||
configfile[sizeof configfile - 1] = '\0';
|
||||
|
|
|
@ -803,9 +803,11 @@ static const char *packettypename[NUMPACKETTYPE] =
|
|||
"RESYNCHEND",
|
||||
"RESYNCHGET",
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
"SENDINGLUAFILE",
|
||||
"ASKLUAFILE",
|
||||
"HASLUAFILE",
|
||||
#endif
|
||||
|
||||
"FILEFRAGMENT",
|
||||
"TEXTCMD",
|
||||
|
|
Loading…
Reference in a new issue