summaryrefslogtreecommitdiff
path: root/src/game/bg_lib.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-04-06 15:17:01 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-04-06 22:20:59 +0200
commita45a033cebd101eee142f15cfde2e643b7404b01 (patch)
treec000eaeea4552eb4225b93d53d1cddf33a5ce88c /src/game/bg_lib.c
parent75984e5d13ae2020fbac8a00748bc17d2a932f57 (diff)
Fix compilation of game.qvm
Diffstat (limited to 'src/game/bg_lib.c')
-rw-r--r--src/game/bg_lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/bg_lib.c b/src/game/bg_lib.c
index 69bca48..1af9107 100644
--- a/src/game/bg_lib.c
+++ b/src/game/bg_lib.c
@@ -830,6 +830,10 @@ double rint( double v )
return floor( v );
}
+double round( double x ) {
+ return floor( x + 0.5 );
+}
+
// bk001127 - guarded this tan replacement
// ld: undefined versioned symbol name tan@@GLIBC_2.0
double tan( double x )