diff --git a/buildsettings.h b/buildsettings.h index 986bf42..c5e3fa5 100644 --- a/buildsettings.h +++ b/buildsettings.h @@ -6,7 +6,7 @@ #define SERVER_PORT 2551 // must be unsigned integer -#define GIT_RELEASE_TAG 23 +#define GIT_RELEASE_TAG 24 #ifdef DEBUG diff --git a/flight.rdbg b/flight.rdbg index 1ed3c22..79a69c1 100644 Binary files a/flight.rdbg and b/flight.rdbg differ diff --git a/gamestate.c b/gamestate.c index bc8ad83..4207457 100644 --- a/gamestate.c +++ b/gamestate.c @@ -2833,6 +2833,14 @@ void process(struct GameState *gs, double dt) { cur_box->gyrospin_velocity = lerp(cur_box->gyrospin_velocity, cur_box->thrust * 20.0, dt * 5.0); cur_box->gyrospin_angle += cur_box->gyrospin_velocity * dt; + if(cur_box->gyrospin_angle > 2.0*PI) + { + cur_box->gyrospin_angle -= 2.0 * PI; + } + if(cur_box->gyrospin_angle < -2.0 * PI) + { + cur_box->gyrospin_angle += 2.0 * PI; + } if (cur_box->wanted_thrust == 0.0) { cur_box->thrust = 0.0; diff --git a/main.c b/main.c index 827914e..ce77f2b 100644 --- a/main.c +++ b/main.c @@ -834,7 +834,7 @@ static void ui(bool draw, double dt, double width, double height) double alpha = 1.0 - clamp01(zoomeasy_learned); set_color_values(1.0, 1.0, 1.0, alpha); sgp_set_image(0, image_zoomeasyhelp); - cpVect draw_at = cpv(width * 0.25, height * 0.5); + cpVect draw_at = cpv(width * 0.1, height * 0.5); transform_scope { scale_at(1.0, -1.0, draw_at.x, draw_at.y);