freebsd-ports/games/wormux/files/extra-patch-src-weapon-ninja_rope.cpp
Pav Lucistnik cff98ea77c - Update to 0.7beta3
PR:		ports/93114
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
Approved by:	Anton Yudin <toha@toha.org.ua> (maintainer)
2006-03-18 22:44:55 +00:00

11 lines
330 B
C++

--- 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