![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tobis Programm forked to not destroy your golden files
Fork of Robocode by
Diff: source/Mapping.cpp
- Revision:
- 71:ddf4eb5c3081
- Parent:
- 62:c2fcf3b349e9
- Child:
- 86:df8c869a5a52
--- a/source/Mapping.cpp Thu Apr 20 07:36:50 2017 +0000 +++ b/source/Mapping.cpp Thu Apr 20 11:37:24 2017 +0000 @@ -158,17 +158,17 @@ while (direction >= 360) direction -= 360; while (direction < 0) direction += 360; - printf("%f || %f || %f || %f\n", x, y, hyp, degree); + printf("%f || %f || %f || %f\r\n", x, y, hyp, degree); if ((0 <= direction && direction < 90) || (180 <= direction && direction < 270)) { pos.x = current_pos.x + rint(sin(direction / 180 * (float)M_PI)*hyp); pos.y = current_pos.y - rint(cos(direction / 180 * (float)M_PI)*hyp); - printf("%d || %d\n", pos.x,pos.y); + printf("%d || %d\r\n", pos.x,pos.y); } if ((90 <= direction && direction < 180) || (270 <= direction && direction < 360)) { pos.x = current_pos.x + rint(sin((180-direction) / 180 * (float)M_PI)*hyp); pos.y = current_pos.y + rint(cos((180-direction) / 180 * (float)M_PI)*hyp); - printf("%d || %d\n", pos.x, pos.y); + printf("%d || %d\r\n", pos.x, pos.y); } return pos;