diff options
author | Eugene Sandulenko | 2016-07-09 23:17:10 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 996b909b0e880298d3e7bb3b7682968ab1e6199b (patch) | |
tree | 5061ce8c4e8eacd5e9f68d64045f80fb1caf9bb6 /engines/director/lingo/lingo.cpp | |
parent | 0b64438dbd3b2ff3579b47da9a46b274b2acde79 (diff) | |
download | scummvm-rg350-996b909b0e880298d3e7bb3b7682968ab1e6199b.tar.gz scummvm-rg350-996b909b0e880298d3e7bb3b7682968ab1e6199b.tar.bz2 scummvm-rg350-996b909b0e880298d3e7bb3b7682968ab1e6199b.zip |
DIRECTOR: Lingo: FLOAT actually has to have double precision. Switching.
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index a73820dff6..b05c62c5b6 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -197,10 +197,10 @@ int Datum::toInt() { return u.i; } -float Datum::toFloat() { +double Datum::toFloat() { switch (type) { case INT: - u.f = (float)u.i; + u.f = (double)u.i; type = FLOAT; break; case FLOAT: @@ -220,7 +220,7 @@ Common::String *Datum::toString() { s->format("%d", u.i); break; case FLOAT: - s->format("%f", u.f); + s->format(g_lingo->_floatPrecisionFormat.c_str(), u.f); break; case STRING: delete s; |