Merge branch 'master' into 'master'

Cleanup whitespaces and ignore build folders

See merge request STJr/SRB2!1859
This commit is contained in:
Alam Ed Arias 2022-11-12 02:35:53 +00:00
commit bd2bfe462c
16 changed files with 34 additions and 31 deletions

2
.gitignore vendored
View file

@ -21,3 +21,5 @@ Win32_LIB_ASM_Release
/assets/debian /assets/debian
/make /make
/bin /bin
/build
/build.*

View file

@ -448,7 +448,7 @@ void B_KeysToTiccmd(mobj_t *mo, ticcmd_t *cmd, boolean forward, boolean backward
cmd->forwardmove += MAXPLMOVE<<FRACBITS>>16; cmd->forwardmove += MAXPLMOVE<<FRACBITS>>16;
if (backward) if (backward)
cmd->forwardmove -= MAXPLMOVE<<FRACBITS>>16; cmd->forwardmove -= MAXPLMOVE<<FRACBITS>>16;
if (left) if (left)
cmd->angleturn += 1280; cmd->angleturn += 1280;
if (right) if (right)
cmd->angleturn -= 1280; cmd->angleturn -= 1280;

View file

@ -641,4 +641,3 @@ LUALIB_API int luaopen_io (lua_State *L) {
lua_pop(L, 1); /* pop environment for default files */ lua_pop(L, 1); /* pop environment for default files */
return 1; return 1;
} }

View file

@ -16,7 +16,7 @@
#ifdef HWRENDER #ifdef HWRENDER
#include "hw_glob.h" #include "hw_glob.h"
#include "hw_light.h" #include "hw_light.h
#include "hw_drv.h" #include "hw_drv.h"
#include "hw_batching.h" #include "hw_batching.h"
@ -3222,7 +3222,7 @@ static void HWR_Subsector(size_t num)
*rover->topheight, *rover->topheight,
*gl_frontsector->lightlist[light].lightlevel, *gl_frontsector->lightlist[light].lightlevel,
rover->alpha-1 > 255 ? 255 : rover->alpha-1, rover->master->frontsector, rover->alpha-1 > 255 ? 255 : rover->alpha-1, rover->master->frontsector,
HWR_RippleBlend(gl_frontsector, rover, false) | (rover->blend ? HWR_GetBlendModeFlag(rover->blend) : PF_Translucent), HWR_RippleBlend(gl_frontsector, rover, false) | (rover->blend ? HWR_GetBlendModeFlag(rover->blend) : PF_Translucent),
false, *gl_frontsector->lightlist[light].extra_colormap); false, *gl_frontsector->lightlist[light].extra_colormap);
} }
else else

View file

@ -11827,7 +11827,7 @@ void A_FlickyCenter(mobj_t *actor)
if (actor->target && P_AproxDistance(actor->target->x - originx, actor->target->y - originy) < actor->extravalue1) if (actor->target && P_AproxDistance(actor->target->x - originx, actor->target->y - originy) < actor->extravalue1)
{ {
actor->extravalue2 = 1; actor->extravalue2 = 1;
P_TeleportMove(actor, actor->target->x, actor->target->y, actor->target->z); P_TeleportMove(actor, actor->target->x, actor->target->y, actor->target->z);
} }
else if(actor->extravalue2) else if(actor->extravalue2)
{ {

View file

@ -1250,7 +1250,7 @@ static void P_LoadSidedefs(UINT8 *data)
sd->midtexture = get_number(process); sd->midtexture = get_number(process);
} }
sd->text = Z_Malloc(7, PU_LEVEL, NULL); sd->text = Z_Malloc(7, PU_LEVEL, NULL);
if (isfrontside && !(msd->toptexture[0] == '-' && msd->toptexture[1] == '\0')) if (isfrontside && !(msd->toptexture[0] == '-' && msd->toptexture[1] == '\0'))
{ {
M_Memcpy(process,msd->toptexture,8); M_Memcpy(process,msd->toptexture,8);

View file

@ -1,3 +1,4 @@
// SONIC ROBO BLAST 2 // SONIC ROBO BLAST 2
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Copyright (C) 1993-1996 by id Software, Inc. // Copyright (C) 1993-1996 by id Software, Inc.
@ -1518,8 +1519,8 @@ void P_PlayJingle(player_t *player, jingletype_t jingletype)
char newmusic[7]; char newmusic[7];
strncpy(newmusic, musname, 7); strncpy(newmusic, musname, 7);
#ifdef HAVE_LUA_MUSICPLUS #ifdef HAVE_LUA_MUSICPLUS
if(LUAh_MusicJingle(jingletype, newmusic, &musflags, &looping)) if(LUAh_MusicJingle(jingletype, newmusic, &musflags, &looping))
return; return;
#endif #endif
newmusic[6] = 0; newmusic[6] = 0;
@ -1609,7 +1610,7 @@ boolean P_EvaluateMusicStatus(UINT16 status, const char *musname)
if (result) if (result)
break; break;
} }
return result; return result;
} }
@ -1666,8 +1667,8 @@ void P_RestoreMusic(player_t *player)
else if (!S_RecallMusic(JT_NONE, false)) // go down the stack else if (!S_RecallMusic(JT_NONE, false)) // go down the stack
{ {
CONS_Debug(DBG_BASIC, "Cannot find any music in resume stack!\n"); CONS_Debug(DBG_BASIC, "Cannot find any music in resume stack!\n");
S_ChangeMusicEx(mapmusname, mapmusflags, true, mapmusposition, 0, 0); S_ChangeMusicEx(mapmusname, mapmusflags, true, mapmusposition, 0, 0);
} }
} }
// //

View file

@ -2259,9 +2259,9 @@ void S_ChangeMusicEx(const char *mmusic, UINT16 mflags, boolean looping, UINT32
return; return;
newmusic[6] = 0; newmusic[6] = 0;
// No Music (empty string) // No Music (empty string)
if (newmusic[0] == 0) if (newmusic[0] == 0)
{ {
if (prefadems) if (prefadems)
I_FadeSong(0, prefadems, &S_StopMusic); I_FadeSong(0, prefadems, &S_StopMusic);
else else
@ -2279,7 +2279,7 @@ void S_ChangeMusicEx(const char *mmusic, UINT16 mflags, boolean looping, UINT32
} }
else if (strnicmp(music_name, newmusic, 6) || (mflags & MUSIC_FORCERESET) || else if (strnicmp(music_name, newmusic, 6) || (mflags & MUSIC_FORCERESET) ||
(midipref != currentmidi && S_PrefAvailable(midipref, newmusic))) (midipref != currentmidi && S_PrefAvailable(midipref, newmusic)))
{ {
CONS_Debug(DBG_DETAILED, "Now playing song %s\n", newmusic); CONS_Debug(DBG_DETAILED, "Now playing song %s\n", newmusic);
S_StopMusic(); S_StopMusic();
@ -2302,7 +2302,7 @@ void S_ChangeMusicEx(const char *mmusic, UINT16 mflags, boolean looping, UINT32
{ {
I_SetSongPosition(position); I_SetSongPosition(position);
I_FadeSong(100, fadeinms, NULL); I_FadeSong(100, fadeinms, NULL);
} }
else // reset volume to 100 with same music else // reset volume to 100 with same music
{ {
I_StopFadingSong(); I_StopFadingSong();

View file

@ -1,3 +1,4 @@
// Emacs style mode select -*- C++ -*- // Emacs style mode select -*- C++ -*-
// SONIC ROBO BLAST 2 // SONIC ROBO BLAST 2
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -1068,7 +1069,7 @@ void I_GetEvent(void)
// update the menu // update the menu
if (currentMenu == &OP_JoystickSetDef) if (currentMenu == &OP_JoystickSetDef)
M_SetupJoystickMenu(0); M_SetupJoystickMenu(0);
break; break;
case SDL_QUIT: case SDL_QUIT:
LUA_HookBool(true, HOOK(GameQuit)); LUA_HookBool(true, HOOK(GameQuit));
I_Quit(); I_Quit();