mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-07 10:34:48 +00:00
VC build fixes
This commit is contained in:
parent
0af071dbca
commit
ddd357d27c
4 changed files with 8 additions and 7 deletions
|
@ -5731,7 +5731,7 @@ static void HWR_DrawSkyBackground(player_t *player)
|
|||
|
||||
dimensionmultiply = ((float)textures[texturetranslation[skytexture]]->width/256.0f);
|
||||
|
||||
v[0].sow = v[3].sow = ((float) (-angle) / ((ANGLE_90-1)*dimensionmultiply)); // left
|
||||
v[0].sow = v[3].sow = ((float) (-(float)angle) / ((ANGLE_90-1)*dimensionmultiply)); // left
|
||||
v[2].sow = v[1].sow = v[0].sow + (1.0f/dimensionmultiply); // right (or left + 1.0f)
|
||||
// use +angle and -1.0f above instead if you wanted old backwards behavior
|
||||
|
||||
|
|
|
@ -571,7 +571,7 @@ void Command_Teleport_f(void)
|
|||
}
|
||||
else // scan the thinkers to find starposts...
|
||||
{
|
||||
mobj_t *mo2;
|
||||
mobj_t *mo2 = NULL;
|
||||
thinker_t *th;
|
||||
|
||||
INT32 starpostmax = 0;
|
||||
|
|
|
@ -486,7 +486,7 @@ static UINT32 num_ffloors = 0; // for loading
|
|||
// But also check for equality and return the matching index
|
||||
static UINT32 CheckAddNetColormapToList(extracolormap_t *extra_colormap)
|
||||
{
|
||||
extracolormap_t *exc, *exc_prev;
|
||||
extracolormap_t *exc, *exc_prev = NULL;
|
||||
UINT32 i = 0;
|
||||
|
||||
if (!net_colormaps)
|
||||
|
|
|
@ -1509,7 +1509,7 @@ static void ST_drawNiGHTSLink(void)
|
|||
else
|
||||
colornum = linkColor[mag][sel];
|
||||
|
||||
aflag |= ((stplyr->linktimer < nightslinktics/3)
|
||||
aflag |= ((stplyr->linktimer < (UINT32)nightslinktics/3)
|
||||
? (9 - 9*stplyr->linktimer/(nightslinktics/3)) << V_ALPHASHIFT
|
||||
: 0);
|
||||
|
||||
|
@ -1613,11 +1613,12 @@ static void ST_drawNiGHTSHUD(void)
|
|||
#endif
|
||||
ST_DrawTopLeftOverlayPatch(16, 8, nbracket);
|
||||
if (G_IsSpecialStage(gamemap))
|
||||
ST_DrawTopLeftOverlayPatch(24, 16, (
|
||||
#ifdef MANIASPHERES
|
||||
(stplyr->bonustime && (leveltime & 4)) ? nssbon :
|
||||
ST_DrawTopLeftOverlayPatch(24, 16, (
|
||||
(stplyr->bonustime && (leveltime & 4)) ? nssbon : nsshud));
|
||||
#else
|
||||
ST_DrawTopLeftOverlayPatch(24, 16, (nsshud));
|
||||
#endif
|
||||
nsshud));
|
||||
else
|
||||
ST_DrawTopLeftOverlayPatch(24, 16, *(((stplyr->bonustime) ? nbon : nhud)+((leveltime/2)%12)));
|
||||
|
||||
|
|
Loading…
Reference in a new issue