Fix misc warnings.

This commit is contained in:
Marco Cawthorne 2020-04-07 15:02:36 +02:00
parent 31793440c2
commit b2ef0db018
3 changed files with 4 additions and 4 deletions

View file

@ -103,7 +103,7 @@ Cstrike_DrawScope(void)
// Border scale to fit the screen
scope_scale = g_hudres[1] / 480;
scope_offset = g_hudmins + (g_hudres[0] / 2) - ((640 * scope_scale) / 2);
scope_offset = g_hudmins[0] + (g_hudres[0] / 2) - ((640 * scope_scale) / 2);
// Type 1 Border... more coming soon?
Cstrike_ScopePic([0,0], [192,112], "sprites/top_left.spr_0.tga");

View file

@ -32,20 +32,21 @@ void m_intro_skip(void)
void m_intro_draw(void)
{
float alpha;
if (clientstate() == 2) {
g_intro_progress = INTRO_TIME;
g_intro_stage = INTRO_DONE;
}
if (g_intro_progress > 7.0f) {
float alpha = (8 - g_intro_progress);
alpha = (8 - g_intro_progress);
drawfill([0,0], [g_vidsize[0],g_vidsize[1]], [1,1,1], alpha);
if (g_intro_stage != INTRO_FADETOMENU) {
g_intro_stage = INTRO_FADETOMENU;
}
} else if (g_intro_progress > 5.0f) {
float alpha = (6 - g_intro_progress);
alpha = (6 - g_intro_progress);
drawpic([g_menuofs[0],g_menuofs[1]], g_bmp[SPLASH8BIT],
[640,480], [1,1,1], 1.0f, 0);
drawfill([0,0], [g_vidsize[0],g_vidsize[1]], [1,1,1], 1.0 - alpha);

View file

@ -64,7 +64,6 @@ void CPictureSwitch::Draw(void)
void CPictureSwitch::Input(float type, float x, float y, float devid)
{
int clickPrev, clickNext;
m_hoverPrev = Util_CheckMouse(m_x+3, m_y+m_size[1]-16, m_size[0]/2, 12);
m_hoverNext = Util_CheckMouse(m_x+m_size[0]-4-(m_size[0]/2), m_y+m_size[1]-16, m_size[0]/2, 12);