summaryrefslogtreecommitdiff
path: root/games/warmux/files/extra-patch-src-weapon-ninja_rope.cpp
blob: 54d00594cd1cc43fd72319f03fb7bc031987b2ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/weapon/ninja_rope.cpp.orig	Fri Feb 10 01:00:05 2006
+++ src/weapon/ninja_rope.cpp	Fri Feb 10 01:01:05 2006
@@ -37,6 +37,8 @@
 #include "../tool/math_tools.h"
 #include "../weapon/weapon_tools.h"
 
+#define round(a) (((a)-floor(a)) < 0.5 ? floor(a) : ceil(a))
+
 /*
 // Is this hack still needed for round()?
 #ifdef WIN32