This commit is contained in:
drian
2021-02-14 20:02:03 +01:00
parent db18caba16
commit 143890eab9
4 changed files with 3 additions and 3 deletions
+1
View File
@@ -674,6 +674,7 @@ extern int isoccluded(float vx, float vy, float cx, float cy, float csize);
// main
extern char *lang;
extern SDL_Window *screen;
extern int screenw, screenh;
extern int stencilbits;
enum { KR_CONSOLE = 1<<0, KR_MENU = 1<<1, KR_EDITMODE = 1<<2 };
+1 -1
View File
@@ -333,7 +333,7 @@ void drawequipicons(playerent *p)
// health & armor
if(p->armour) drawequipicon(HUDPOS_ARMOUR*2, 1650, (p->armour-1)/25, 2);
if(p->mag[GUN_GRENADE]) drawequipicon(oldfashionedgunstats ? (HUDPOS_GRENADE + (((float)screen->w / (float)screen->h > 1.5f) ? 75 : 25)) * 2 : HUDPOS_GRENADE*2, 1650, 3, 1);
if(p->mag[GUN_GRENADE]) drawequipicon(oldfashionedgunstats ? (HUDPOS_GRENADE + (((float)screenw / (float)screenh > 1.5f) ? 75 : 25)) * 2 : HUDPOS_GRENADE*2, 1650, 3, 1);
drawequipicon(HUDPOS_HEALTH*2, 1650, 2, 3);
if(p->mag[GUN_GRENADE]) drawequipicon(oldfashionedgunstats ? (HUDPOS_GRENADE + 25)*2 : HUDPOS_GRENADE*2, 1650, 3, 1);
-1
View File
@@ -1058,7 +1058,6 @@ struct vertmodel : model
shadows = new GLuint[numframes];
glGenTextures(numframes, shadows);
extern int screenw, screenh;
int aasize = 1<<(dynshadowsize + aadynshadow);
while(aasize > screenw || aasize > screenh) aasize /= 2;
+1 -1
View File
@@ -1340,7 +1340,7 @@ void grenades::renderstats()
{
char gunstats[64];
sprintf(gunstats, "%d", mag);
draw_text(gunstats, oldfashionedgunstats ? HUDPOS_GRENADE + HUDPOS_NUMBERSPACING + (((float)screen->w / (float)screen->h > 1.5f) ? 75 : 25) : HUDPOS_GRENADE + HUDPOS_NUMBERSPACING, 823);
draw_text(gunstats, oldfashionedgunstats ? HUDPOS_GRENADE + HUDPOS_NUMBERSPACING + (((float)screenw / (float)screenh > 1.5f) ? 75 : 25) : HUDPOS_GRENADE + HUDPOS_NUMBERSPACING, 823);
}
bool grenades::selectable() { return weapon::selectable() && state != GST_INHAND && mag; }