# HG changeset patch # User Adam Kaminski # Date 1635093637 14400 # Sun Oct 24 12:40:37 2021 -0400 # Node ID ff856a2e18677adc1a77e01484fd4bf0c7c53d3c # Parent 2113f74e357569cb4f04d59a425eea7b3c889880 Don't spawn fog if the player teleports while being backtraced. diff -r 2113f74e3575 -r ff856a2e1867 src/p_teleport.cpp --- a/src/p_teleport.cpp Mon Oct 18 10:16:16 2021 -0400 +++ b/src/p_teleport.cpp Sun Oct 24 12:40:37 2021 -0400 @@ -185,10 +185,14 @@ } // [BC] Teleporting spectators do not create fog. - if ( thing && thing->player && thing->player->bSpectating ) + // [AK] Players also don't create fog while they're being backtraced. + if ( thing && thing->player ) { - useFog = false; - sourceFog = false; + if ( thing->player->bSpectating || ( SERVER_IsBacktracingPlayer( thing->player - players ))) + { + useFog = false; + sourceFog = false; + } } // Spawn teleport fog at source and destination