MSVC doesn't have a round function
This commit is contained in:
parent
cf2bd4003c
commit
dce2d5d7cd
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ void FGATCController::transmit(FGTrafficRecord *rec, AtcMsgId msgId, AtcMsgDir m
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
double currFreq = fgGetDouble("/instrumentation/comm/frequencies/selected-mhz");
|
double currFreq = fgGetDouble("/instrumentation/comm/frequencies/selected-mhz");
|
||||||
int currFreqI = (int) round(currFreq * 100);
|
int currFreqI = (int) floor(currFreq * 100 + 0.5);
|
||||||
//cerr << "Using " << currFreqI << " and " << commFreq << endl;
|
//cerr << "Using " << currFreqI << " and " << commFreq << endl;
|
||||||
if (currFreqI == commFreq) {
|
if (currFreqI == commFreq) {
|
||||||
fgSetString("/sim/messages/atc", text.c_str());
|
fgSetString("/sim/messages/atc", text.c_str());
|
||||||
|
|
Loading…
Add table
Reference in a new issue