mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-28 14:11:06 +00:00
Tiny performance cleanup in G_ShowView
git-svn-id: https://svn.eduke32.com/eduke32@7491 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fd5ee7c561
commit
23ba7b1550
2 changed files with 7 additions and 7 deletions
|
@ -1170,7 +1170,7 @@ static int G_StartTrackSlotWrap(int const volumeNum, int const levelNum)
|
||||||
int G_StartTrack(int const levelNum) { return G_StartTrackSlot(ud.volume_number, levelNum); }
|
int G_StartTrack(int const levelNum) { return G_StartTrackSlot(ud.volume_number, levelNum); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LUNATIC_EXTERN void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int sect, int x1, int y1, int x2, int y2, bool unbiasedp)
|
LUNATIC_EXTERN void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int sect, int ix1, int iy1, int ix2, int iy2, bool unbiasedp)
|
||||||
{
|
{
|
||||||
if (g_screenCapture)
|
if (g_screenCapture)
|
||||||
return;
|
return;
|
||||||
|
@ -1181,10 +1181,10 @@ LUNATIC_EXTERN void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int sect, i
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x1 > x2)
|
int x1 = min(ix1, ix2);
|
||||||
swaplong(&x1, &x2);
|
int x2 = max(ix1, ix2);
|
||||||
if (y1 > y2)
|
int y1 = min(iy1, iy2);
|
||||||
swaplong(&y1, &y2);
|
int y2 = max(iy1, iy2);
|
||||||
|
|
||||||
if (!unbiasedp)
|
if (!unbiasedp)
|
||||||
{
|
{
|
||||||
|
|
|
@ -123,8 +123,8 @@ static FORCE_INLINE int32_t VM_OnEventWithReturn(int nEventID, int spriteNum, in
|
||||||
void G_GetTimeDate(int32_t * pValues);
|
void G_GetTimeDate(int32_t * pValues);
|
||||||
int G_StartTrack(int levelNum);
|
int G_StartTrack(int levelNum);
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int32_t sect,
|
void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int sect,
|
||||||
int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t unbiasedp);
|
int ix1, int iy1, int ix2, int iy2, bool unbiasedp);
|
||||||
void P_AddWeaponMaybeSwitchI(int32_t snum, int32_t weap);
|
void P_AddWeaponMaybeSwitchI(int32_t snum, int32_t weap);
|
||||||
void VM_FallSprite(int32_t i);
|
void VM_FallSprite(int32_t i);
|
||||||
int32_t VM_ResetPlayer2(int32_t snum, int32_t flags);
|
int32_t VM_ResetPlayer2(int32_t snum, int32_t flags);
|
||||||
|
|
Loading…
Reference in a new issue