Changeset db58227 in network-game


Ignore:
Timestamp:
May 10, 2013, 12:55:52 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
7f2cef0
Parents:
d211210
Message:

Fix a rounding bug in player movement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    rd211210 rdb58227  
    9393      double angle = atan2(target.y-pos.y, target.x-pos.x);
    9494      float dist = sqrt(pow(target.x-pos.x, 2) + pow(target.y-pos.y, 2));
    95       POSITION newPos;
     95      FLOAT_POSITION newPos;
    9696
    9797      //cout << "pos.x: " << pos.x << endl;
Note: See TracChangeset for help on using the changeset viewer.