diff --git a/source/games/duke/src/actors_lava.cpp b/source/games/duke/src/actors_lava.cpp index 0e33aa2f2..bc2782e89 100644 --- a/source/games/duke/src/actors_lava.cpp +++ b/source/games/duke/src/actors_lava.cpp @@ -563,7 +563,6 @@ void thunder(void) { if (testgotpic(RRTILE2577, true)) { - g_visibility = 256; // this is an engine variable if (krand() > 65000) { thunderflash = 1; @@ -573,7 +572,6 @@ void thunder(void) } else { - g_visibility = p->visibility; brightness = ud.brightness >> 2; } } @@ -585,7 +583,6 @@ void thunder(void) thunderflash = 0; brightness = ud.brightness >> 2; thunder_brightness = brightness; - g_visibility = p->visibility; } } if (!winderflash) @@ -620,24 +617,6 @@ void thunder(void) { r1 = krand() & 4; brightness += r1; - switch (r1) - { - case 0: - g_visibility = 2048; - break; - case 1: - g_visibility = 1024; - break; - case 2: - g_visibility = 512; - break; - case 3: - g_visibility = 256; - break; - default: - g_visibility = 4096; - break; - } if (brightness > 8) brightness = 0; thunder_brightness = brightness; diff --git a/source/games/duke/src/player_d.cpp b/source/games/duke/src/player_d.cpp index e14f8a120..ec3b58091 100644 --- a/source/games/duke/src/player_d.cpp +++ b/source/games/duke/src/player_d.cpp @@ -2558,8 +2558,6 @@ static void operateweapon(int snum, ESyncBits actions) if (p->cursector->lotag != 2) { p->ammo_amount[FLAMETHROWER_WEAPON]--; - if (snum == screenpeek) - g_visibility = 0; fi.shoot(pact, FIREBALL); } checkavailweapon(p); diff --git a/source/games/duke/src/premap_r.cpp b/source/games/duke/src/premap_r.cpp index 4eb8ace54..319c2298e 100644 --- a/source/games/duke/src/premap_r.cpp +++ b/source/games/duke/src/premap_r.cpp @@ -768,10 +768,6 @@ void prelevel_r(int g, TArray& actors) } } thunder_brightness = 0; - if (!thunderon) - { - g_visibility = p->visibility; - } }