diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2014-01-19 13:47:16 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2014-01-19 13:47:16 +0000 |
commit | c1082e00056e43a468cd6143fde221192a5037b1 (patch) | |
tree | c6eb9f30bba7e25e3b15d21d8745689e0a196c63 /games/gillo/files | |
parent | d44adee0d55638f442d92a399abf15447728f89d (diff) |
Notes
Diffstat (limited to 'games/gillo/files')
-rw-r--r-- | games/gillo/files/patch-src__goal.cpp | 11 | ||||
-rw-r--r-- | games/gillo/files/patch-src__goal.h | 11 | ||||
-rw-r--r-- | games/gillo/files/patch-src__simpleball.cpp | 11 | ||||
-rw-r--r-- | games/gillo/files/patch-src__simpleball.h | 13 |
4 files changed, 46 insertions, 0 deletions
diff --git a/games/gillo/files/patch-src__goal.cpp b/games/gillo/files/patch-src__goal.cpp new file mode 100644 index 000000000000..fd928a6786a9 --- /dev/null +++ b/games/gillo/files/patch-src__goal.cpp @@ -0,0 +1,11 @@ +--- src/goal.cpp.orig ++++ src/goal.cpp +@@ -22,6 +22,8 @@ + + namespace gillo { + ++const float Goal::areaRadius = ODE_GOAL_DISTANCE; ++ + Goal::Goal(Context& c) + : Entity(c) + { diff --git a/games/gillo/files/patch-src__goal.h b/games/gillo/files/patch-src__goal.h new file mode 100644 index 000000000000..91d7ffab5a6b --- /dev/null +++ b/games/gillo/files/patch-src__goal.h @@ -0,0 +1,11 @@ +--- src/goal.h.orig ++++ src/goal.h +@@ -32,7 +32,7 @@ + */ + class Goal : public Entity + { +- static const float areaRadius = ODE_GOAL_DISTANCE; ++ static const float areaRadius; + dGeomID gids[6]; + public: + Goal(Context& c); diff --git a/games/gillo/files/patch-src__simpleball.cpp b/games/gillo/files/patch-src__simpleball.cpp new file mode 100644 index 000000000000..0a8d7e7a8753 --- /dev/null +++ b/games/gillo/files/patch-src__simpleball.cpp @@ -0,0 +1,11 @@ +--- src/simpleball.cpp.orig ++++ src/simpleball.cpp +@@ -26,6 +26,8 @@ + const sgVec4 SimpleBall::p1[3] = { {0.3, 0.0, 0.0, 1.0}, {1.0, 0.0, 0.0, 1.0}, {1.0, 0.4, 0.4, 1.0} }; + const sgVec4 SimpleBall::ne[3] = { {0.0, 0.0, 0.0, 1}, {0.6, 0.6, 0.6, 1}, {1.0, 1.0, 1.0, 1} }; + const sgVec4 SimpleBall::p2[3] = { {0.0, 0.0, 0.3, 1}, {0.0, 0.0, 1.0, 1}, {0.4, 0.4, 1.0, 1} }; ++const double SimpleBall::weight = ODE_BALL_MASS; ++const double SimpleBall::radius = ODE_BALL_RADIUS; + + SimpleBall::SimpleBall(Context& c) + : Entity(c), ballEffectPtr(NULL), possessionIncrement(0), targetSize(2*radius), currentSize(2*radius) diff --git a/games/gillo/files/patch-src__simpleball.h b/games/gillo/files/patch-src__simpleball.h new file mode 100644 index 000000000000..ce26cc72cc61 --- /dev/null +++ b/games/gillo/files/patch-src__simpleball.h @@ -0,0 +1,13 @@ +--- src/simpleball.h.orig ++++ src/simpleball.h +@@ -37,8 +37,8 @@ + static const sgVec4 p1[3]; + static const sgVec4 ne[3]; + static const sgVec4 p2[3]; +- static const double weight = ODE_BALL_MASS; +- static const double radius = ODE_BALL_RADIUS; ++ static const double weight; ++ static const double radius; + + SimpleBall(Context& c); + SimpleBall(Context& c, float size, ssgSimpleState* state); |