Update main.cpp

This commit is contained in:
Andrei Pana 2021-08-30 23:28:16 -04:00
parent 4b747e567a
commit e4119a8618
1 changed files with 5 additions and 1 deletions

View File

@ -1449,7 +1449,11 @@ Render2dStuff(void)
firstPersonWeapon = true;
// Draw black border for sniper and rocket launcher
if((weaponType == WEAPONTYPE_SNIPERRIFLE || weaponType == WEAPONTYPE_ROCKETLAUNCHER || weaponType == WEAPONTYPE_LASERSCOPE) && firstPersonWeapon){
#ifdef FIX_BUGS
if((weaponType == WEAPONTYPE_SNIPERRIFLE || weaponType == WEAPONTYPE_LASERSCOPE) && firstPersonWeapon) {
#else
if((weaponType == WEAPONTYPE_SNIPERRIFLE || weaponType == WEAPONTYPE_ROCKETLAUNCHER || weaponType == WEAPONTYPE_LASERSCOPE) && firstPersonWeapon) {
#endif
CRGBA black(0, 0, 0, 255);
// top and bottom strips