mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +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
|
// abort send/receive of files
|
||||||
CloseNetFile();
|
CloseNetFile();
|
||||||
RemoveLuaFileTransfers();
|
RemoveAllLuaFileTransfers();
|
||||||
waitingforluafiletransfer = false;
|
waitingforluafiletransfer = false;
|
||||||
|
|
||||||
if (server)
|
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 (!luafiletransfers->next) // Only if there is no transfer already going on
|
||||||
{
|
{
|
||||||
if (FIL_FileOK(filetransfer->realfilename))
|
if (FIL_ReadFileOK(filetransfer->realfilename))
|
||||||
SV_PrepareSendLuaFileToNextNode();
|
SV_PrepareSendLuaFileToNextNode();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -572,7 +572,7 @@ void RemoveLuaFileTransfer(void)
|
||||||
free(filetransfer);
|
free(filetransfer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RemoveLuaFileTransfers(void)
|
void RemoveAllLuaFileTransfers(void)
|
||||||
{
|
{
|
||||||
while (luafiletransfers)
|
while (luafiletransfers)
|
||||||
RemoveLuaFileTransfer();
|
RemoveLuaFileTransfer();
|
||||||
|
|
|
@ -101,7 +101,7 @@ boolean SV_SendLuaFile(INT32 node, const char *filename, boolean textmode);
|
||||||
void SV_PrepareSendLuaFile(const char *filename);
|
void SV_PrepareSendLuaFile(const char *filename);
|
||||||
void SV_HandleLuaFileSent(UINT8 node);
|
void SV_HandleLuaFileSent(UINT8 node);
|
||||||
void RemoveLuaFileTransfer(void);
|
void RemoveLuaFileTransfer(void);
|
||||||
void RemoveLuaFileTransfers(void);
|
void RemoveAllLuaFileTransfers(void);
|
||||||
void SV_AbortLuaFileTransfer(INT32 node);
|
void SV_AbortLuaFileTransfer(INT32 node);
|
||||||
void CL_PrepareDownloadLuaFile(void);
|
void CL_PrepareDownloadLuaFile(void);
|
||||||
void Got_LuaFile(UINT8 **cp, INT32 playernum);
|
void Got_LuaFile(UINT8 **cp, INT32 playernum);
|
||||||
|
|
Loading…
Reference in a new issue