static void title_timer(int id, float dt)
{
- float g[3] = { 0.0f, -9.8f, 0.0f };
+ float g[3] = { 0.f, 0.f, 0.f };
game_step(g, dt);
game_set_fly(fcosf(time_state() / 10.f));
if (curr_state() == &st_pause)
return 1;
- if (e && (SDL_GetModState() & KMOD_SHIFT))
+ if (e && !config_tst_d(CONFIG_KEY_PAUSE, SDLK_ESCAPE))
return goto_state(s);
st_continue = curr_state();
{
if (d)
{
- if (c == SDLK_ESCAPE)
- return goto_pause(&st_over, 1);
if (config_tst_d(CONFIG_KEY_PAUSE, c))
return goto_pause(&st_over, 0);
}
if (paused)
paused = 0;
- if (!config_get_d(CONFIG_BALL_COLLISIONS))
- game_set_play(-2, 0);
- game_set_play(0, 1);
-
return id;
}
static void stroke_timer(int id, float dt)
{
- float g[3] = { 0.0f, -9.8f, 0.0f };
+ float g[3] = { 0.f, 0.f, 0.f };
float k;
if (paused)
paused = 0;
else
- hole_goal(0);
+ hole_goal();
hud_init();
static void stop_timer(int id, float dt)
{
- float g[3] = { 0.0f, -9.8f, 0.0f };
+ float g[3] = { 0.f, 0.f, 0.f };
game_update_view(dt);
game_step(g, dt);