# HG changeset patch # User nireco # Date 1227896637 0 # Node ID 241830182118b5be845f69ec5ccbd145ffd5b7d8 # Parent 7885c71653d0485a2a7b67e5ab82f89c2219abb6 added shape to Shot, shouldn't need it, but drawing might need it. Well Shot is not used anywhere at the moment diff -r 7885c71653d0 -r 241830182118 src/proto2/GameState.hh --- a/src/proto2/GameState.hh Fri Nov 28 18:19:31 2008 +0000 +++ b/src/proto2/GameState.hh Fri Nov 28 18:23:57 2008 +0000 @@ -64,7 +64,13 @@ public: Shot(GameState &state, Vector position, bool visible) : PhysicsObject((PhysicsWorld &) state, PLAYER_MASS, position, Vector(0, 0)), state(state), visible(visible) { - + // Looks kind of dumb, for ammunition to have shape + std::vector shape(4); + shape[0] = Vector(-1, -1); + shape[1] = Vector(-1, 1); + shape[2] = Vector(1, 1); + shape[3] = Vector(1, -1); + setShape(shape); } private: virtual void onCollision();