From 0b7a642f1d7c266532e54f194e9af2b8b68b5be9 Mon Sep 17 00:00:00 2001 From: torcs-ng Date: Fri, 10 Nov 2023 13:18:16 +0000 Subject: [PATCH] - fix racewebmetar git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9218 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: fa5712302dbb57f2e6c65d59ba2aac6f7bc848bb Former-commit-id: e0da1d51f34edc6fc3bab0a26199eafee1a27e60 --- src/modules/racing/standardgame/racewebmetar.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/racing/standardgame/racewebmetar.cpp b/src/modules/racing/standardgame/racewebmetar.cpp index 6a09df1a1..4de97bb42 100755 --- a/src/modules/racing/standardgame/racewebmetar.cpp +++ b/src/modules/racing/standardgame/racewebmetar.cpp @@ -742,8 +742,6 @@ bool ReWebMetar::scanRwyVisRange() _runways[id]._min_visibility = r._min_visibility; _runways[id]._max_visibility = r._max_visibility; - GfLogInfo(" METAR Visibility = %.1f\n", r._min_visibility); - return true; } @@ -962,6 +960,7 @@ bool ReWebMetar::scanSkyCondition() if (i == 3) { cl._coverage = ReWebMetarCloud::COVERAGE_CLEAR; + priorCoverage = cl._coverage; _clouds.push_back(cl); } else @@ -1027,8 +1026,8 @@ bool ReWebMetar::scanSkyCondition() } else if (!strncmp(m, "///", i = 3)) { - cl._coverage = ReWebMetarCloud::COVERAGE_NIL; // should we add 'unknown'? - + cl._coverage = ReWebMetarCloud::COVERAGE_NIL; // should we add 'unknown'? + priorCoverage = cl._coverage; } else {