mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Minor code cleanup
This commit is contained in:
parent
ebc1809da9
commit
20d054a679
3 changed files with 4 additions and 4 deletions
|
@ -3164,7 +3164,7 @@ void D_QuitNetGame(void)
|
|||
|
||||
// abort send/receive of files
|
||||
CloseNetFile();
|
||||
RemoveLuaFileTransfers();
|
||||
RemoveAllLuaFileTransfers();
|
||||
waitingforluafiletransfer = false;
|
||||
|
||||
if (server)
|
||||
|
|
|
@ -506,7 +506,7 @@ void AddLuaFileTransfer(const char *filename, const char *mode)
|
|||
|
||||
if (!luafiletransfers->next) // Only if there is no transfer already going on
|
||||
{
|
||||
if (FIL_FileOK(filetransfer->realfilename))
|
||||
if (FIL_ReadFileOK(filetransfer->realfilename))
|
||||
SV_PrepareSendLuaFileToNextNode();
|
||||
else
|
||||
{
|
||||
|
@ -572,7 +572,7 @@ void RemoveLuaFileTransfer(void)
|
|||
free(filetransfer);
|
||||
}
|
||||
|
||||
void RemoveLuaFileTransfers(void)
|
||||
void RemoveAllLuaFileTransfers(void)
|
||||
{
|
||||
while (luafiletransfers)
|
||||
RemoveLuaFileTransfer();
|
||||
|
|
|
@ -101,7 +101,7 @@ boolean SV_SendLuaFile(INT32 node, const char *filename, boolean textmode);
|
|||
void SV_PrepareSendLuaFile(const char *filename);
|
||||
void SV_HandleLuaFileSent(UINT8 node);
|
||||
void RemoveLuaFileTransfer(void);
|
||||
void RemoveLuaFileTransfers(void);
|
||||
void RemoveAllLuaFileTransfers(void);
|
||||
void SV_AbortLuaFileTransfer(INT32 node);
|
||||
void CL_PrepareDownloadLuaFile(void);
|
||||
void Got_LuaFile(UINT8 **cp, INT32 playernum);
|
||||
|
|
Loading…
Reference in a new issue