diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-05-13 15:55:16 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-05-13 15:55:16 -0700 |
commit | fe7bce3a25167d1cc7c99681b07a804e899a08e3 (patch) | |
tree | 285a4872b153b81625e8d02d6b7d7c0ad3383830 /src | |
parent | fcd1731e39bdce214d79f64fab33554345a3d5da (diff) |
game: simplify pad_free() usage
Cosmetic change getting rid of a FIXME from the code
Diffstat (limited to 'src')
-rw-r--r-- | src/game.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -450,8 +450,7 @@ static void reset_game(game_t *game) ix2_reset(game->ix2); stage_free(game->game_node); - if (game->pad) /* XXX FIXME: this is a stupidty in libpad */ - pad_free(game->pad); + game->pad = pad_free(game->pad); game->game_node = stage_new(&(stage_conf_t){ .parent = game->stage, .name = "game", .active = 1, .alpha = 1.f }, NULL, NULL); |