mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 14:33:46 -04:00
remove excessive warnings, formatting
This commit is contained in:
parent
2914d96495
commit
1a907867af
@ -395,7 +395,7 @@ static boolean OpenFile(sndfile_t *file, void *data, sf_count_t size)
|
|||||||
|
|
||||||
if (!file->sndfile)
|
if (!file->sndfile)
|
||||||
{
|
{
|
||||||
I_Printf(VB_WARNING, "SndFile: %s", sf_strerror(file->sndfile));
|
I_Printf(VB_DEBUG, "SndFile: %s", sf_strerror(file->sndfile));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,9 +439,6 @@ static boolean OpenFile(sndfile_t *file, void *data, sf_count_t size)
|
|||||||
// libsndfile do the conversion.
|
// libsndfile do the conversion.
|
||||||
sample_format = Int16;
|
sample_format = Int16;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
I_Printf(VB_DEBUG, "SndFile: Unknown sfinfo.format %d", (int)file->sfinfo.format);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
frame_size = 1;
|
frame_size = 1;
|
||||||
|
@ -125,14 +125,11 @@ void I_InitTimer(void)
|
|||||||
{
|
{
|
||||||
if (SDL_Init(SDL_INIT_TIMER) < 0)
|
if (SDL_Init(SDL_INIT_TIMER) < 0)
|
||||||
{
|
{
|
||||||
I_Error("I_InitTimer: Failed to initialize timer: %s",
|
I_Error("I_InitTimer: Failed to initialize timer: %s", SDL_GetError());
|
||||||
SDL_GetError());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
I_AtExit(I_ShutdownTimer, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
I_AtExit(I_ShutdownTimer, true);
|
||||||
|
|
||||||
basefreq = SDL_GetPerformanceFrequency();
|
basefreq = SDL_GetPerformanceFrequency();
|
||||||
|
|
||||||
I_GetTime = I_GetTime_Scaled;
|
I_GetTime = I_GetTime_Scaled;
|
||||||
|
@ -156,7 +156,6 @@ static void NET_SDL_FreeAddress(net_addr_t *addr)
|
|||||||
static boolean NET_SDL_InitClient(void)
|
static boolean NET_SDL_InitClient(void)
|
||||||
{
|
{
|
||||||
int p;
|
int p;
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (initted)
|
if (initted)
|
||||||
return true;
|
return true;
|
||||||
@ -173,10 +172,13 @@ static boolean NET_SDL_InitClient(void)
|
|||||||
if (p > 0)
|
if (p > 0)
|
||||||
port = M_ParmArgToInt(p);
|
port = M_ParmArgToInt(p);
|
||||||
|
|
||||||
ret = SDLNet_Init();
|
if (SDLNet_Init() < 0)
|
||||||
|
{
|
||||||
|
I_Error("NET_SDL_InitClient: Failed to initialize SDLNet: %s",
|
||||||
|
SDLNet_GetError());
|
||||||
|
}
|
||||||
|
|
||||||
if (!ret)
|
I_AtExit(SDLNet_Quit, true);
|
||||||
I_AtExit(SDLNet_Quit, true);
|
|
||||||
|
|
||||||
udpsocket = SDLNet_UDP_Open(0);
|
udpsocket = SDLNet_UDP_Open(0);
|
||||||
|
|
||||||
@ -199,7 +201,6 @@ static boolean NET_SDL_InitClient(void)
|
|||||||
static boolean NET_SDL_InitServer(void)
|
static boolean NET_SDL_InitServer(void)
|
||||||
{
|
{
|
||||||
int p;
|
int p;
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (initted)
|
if (initted)
|
||||||
return true;
|
return true;
|
||||||
@ -208,10 +209,13 @@ static boolean NET_SDL_InitServer(void)
|
|||||||
if (p > 0)
|
if (p > 0)
|
||||||
port = atoi(myargv[p+1]);
|
port = atoi(myargv[p+1]);
|
||||||
|
|
||||||
ret = SDLNet_Init();
|
if (SDLNet_Init() < 0)
|
||||||
|
{
|
||||||
|
I_Error("NET_SDL_InitServer: Failed to initialize SDLNet: %s",
|
||||||
|
SDLNet_GetError());
|
||||||
|
}
|
||||||
|
|
||||||
if (!ret)
|
I_AtExit(SDLNet_Quit, true);
|
||||||
I_AtExit(SDLNet_Quit, true);
|
|
||||||
|
|
||||||
udpsocket = SDLNet_UDP_Open(port);
|
udpsocket = SDLNet_UDP_Open(port);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user