@@ -188,20 +188,31 @@ void(entity players) Zoning_SetFog =
188188 Zoning_GetCurrentZone(players);
189189
190190 // if this round is a dog round
191- if (roundtype == 2 ) {
191+ if (rounds == dogRound && map_has_hellhounds) {
192+ roundtype = 2 ;
192193 fog_value = strcat(game_modifier_hellhound_fog_color, "\n " );
193194 } else {
194- // if it's a normal zombie round and there is
195- // no fog value stored in this zone
196- if (stored_zones[players. current_zone]. fog_value == "" ) {
197- if (game_modifier_default_fog_color != "" )
198- // use whole map fog if available
199- fog_value = strcat(game_modifier_default_fog_color, "\n " );
200- else
201- fog_value = "0 0 0 0 0\n " ;
195+ // zombie round
196+ roundtype = 1 ;
197+
198+ if (has_zone_file) {
199+ // no fog value stored in this zone
200+ if (stored_zones[players. current_zone]. fog_value == "" ) {
201+ if (game_modifier_default_fog_color != "" )
202+ // use whole map fog if available
203+ fog_value = strcat(game_modifier_default_fog_color, "\n " );
204+ else
205+ fog_value = "0 0 0 0 0\n " ;
206+ } else {
207+ // we have custom fog for this zone
208+ fog_value = strcat(stored_zones[players. current_zone]. fog_value, "\n " );
209+ }
202210 } else {
203- // we have custom fog for this zone
204- fog_value = strcat(stored_zones[players. current_zone]. fog_value, "\n " );
211+ if (game_modifier_default_fog_color != "" ) {
212+ fog_value = strcat(game_modifier_default_fog_color, "\n " );
213+ } else {
214+ fog_value = "0 0 0 0 0\n " ;
215+ }
205216 }
206217 }
207218
0 commit comments