From eee3ef30652267becf498cb87e4bf35a79f08698 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Wed, 27 Feb 2013 04:18:37 +0000
Subject: [PATCH] [Change] Minor change to physics.

---
 src/physics.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/physics.c b/src/physics.c
index 78fe403..07995ba 100644
--- a/src/physics.c
+++ b/src/physics.c
@@ -62,7 +62,7 @@ void vectnull(Vec2* v) {
 
 // Get the direction pointed to by two vectors (from ref to v).
 double vect_angle(const Vec2* ref, const Vec2* v) {
-  return ANGLE(VX(*v)-VX(*ref), VY(*v)-VY(*ref));
+  return ANGLE(v->x - ref->x, v->y - ref->y);
 }
 
 void vect_cadd(Vec2* v, const double x, const double y) {
@@ -148,10 +148,10 @@ static void rk4_update(Solid* obj, const double dt) {
   double h = dt / (double)N; // Step.
 
   double px, py, vx, vy;
-  px = VX(obj->pos);
-  py = VY(obj->pos);
-  vx = VX(obj->vel);
-  vy = VY(obj->vel);
+  px = obj->pos.x;
+  py = obj->pos.y;
+  vx = obj->vel.x;
+  vy = obj->vel.y;
 
   if(obj->force.mod) {  // Force applied on object.
     int i;