mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 02:01:35 +00:00
Fix bad tabulation
This commit is contained in:
parent
2d142f734f
commit
ebc1809da9
1 changed files with 8 additions and 8 deletions
|
@ -477,21 +477,21 @@ void AddLuaFileTransfer(const char *filename, const char *mode)
|
||||||
if (!filetransfer)
|
if (!filetransfer)
|
||||||
I_Error("AddLuaFileTransfer: Out of memory\n");
|
I_Error("AddLuaFileTransfer: Out of memory\n");
|
||||||
*prevnext = filetransfer;
|
*prevnext = filetransfer;
|
||||||
filetransfer->next = NULL;
|
filetransfer->next = NULL;
|
||||||
|
|
||||||
// Allocate the file name
|
// Allocate the file name
|
||||||
filetransfer->filename = strdup(filename);
|
filetransfer->filename = strdup(filename);
|
||||||
if (!filetransfer->filename)
|
if (!filetransfer->filename)
|
||||||
I_Error("AddLuaFileTransfer: Out of memory\n");
|
I_Error("AddLuaFileTransfer: Out of memory\n");
|
||||||
|
|
||||||
// Create and allocate the real file name
|
// Create and allocate the real file name
|
||||||
if (server)
|
if (server)
|
||||||
filetransfer->realfilename = strdup(va("%s" PATHSEP "%s",
|
filetransfer->realfilename = strdup(va("%s" PATHSEP "%s",
|
||||||
luafiledir, filename));
|
luafiledir, filename));
|
||||||
else
|
else
|
||||||
filetransfer->realfilename = strdup(va("%s" PATHSEP "client" PATHSEP "$$$%d%d.tmp",
|
filetransfer->realfilename = strdup(va("%s" PATHSEP "client" PATHSEP "$$$%d%d.tmp",
|
||||||
luafiledir, rand(), rand()));
|
luafiledir, rand(), rand()));
|
||||||
if (!filetransfer->realfilename)
|
if (!filetransfer->realfilename)
|
||||||
I_Error("AddLuaFileTransfer: Out of memory\n");
|
I_Error("AddLuaFileTransfer: Out of memory\n");
|
||||||
|
|
||||||
strlcpy(filetransfer->mode, mode, sizeof(filetransfer->mode));
|
strlcpy(filetransfer->mode, mode, sizeof(filetransfer->mode));
|
||||||
|
@ -556,7 +556,7 @@ void SV_PrepareSendLuaFileToNextNode(void)
|
||||||
void SV_HandleLuaFileSent(UINT8 node)
|
void SV_HandleLuaFileSent(UINT8 node)
|
||||||
{
|
{
|
||||||
luafiletransfers->nodestatus[node] = LFTNS_SENT;
|
luafiletransfers->nodestatus[node] = LFTNS_SENT;
|
||||||
SV_PrepareSendLuaFileToNextNode();
|
SV_PrepareSendLuaFileToNextNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RemoveLuaFileTransfer(void)
|
void RemoveLuaFileTransfer(void)
|
||||||
|
@ -1036,7 +1036,7 @@ void Got_Filetxpak(void)
|
||||||
CONS_Printf(M_GetText("Downloading %s...(done)\n"),
|
CONS_Printf(M_GetText("Downloading %s...(done)\n"),
|
||||||
filename);
|
filename);
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
if (luafiletransfers)
|
if (luafiletransfers)
|
||||||
{
|
{
|
||||||
// Tell the server we have received the file
|
// Tell the server we have received the file
|
||||||
netbuffer->packettype = PT_HASLUAFILE;
|
netbuffer->packettype = PT_HASLUAFILE;
|
||||||
|
|
Loading…
Reference in a new issue