Tobis Programm forked to not destroy your golden files
Fork of Robocode by
Diff: source/Positioning.cpp
- Revision:
- 129:0f60bf9640bb
- Parent:
- 125:573a18c2155f
- Child:
- 134:5c29654ce301
--- a/source/Positioning.cpp Sun May 14 14:40:12 2017 +0000 +++ b/source/Positioning.cpp Mon May 15 11:48:05 2017 +0000 @@ -37,8 +37,8 @@ position coord_to_pos(coordinates coord) { position pos = {0}; - pos.x = rint(coord.x -0.5f); //round values - pos.y = rint(coord.y -0.5f); + pos.x = rint(coord.x/4.0f - 0.5f); //round values + pos.y = rint(coord.y/4.0f - 0.5f); return pos; }