Removes useless transfer function

This commit is contained in:
Linus Probert 2018-09-03 12:53:12 +02:00
parent 4a6422fc09
commit 6e7ce815fd
1 changed files with 2 additions and 8 deletions

View File

@ -105,12 +105,6 @@ action_spent(Player *p)
}
}
static void
player_step(Player *p)
{
action_spent(p);
}
static void
on_monster_collision(Player *player,
Monster *monster,
@ -267,7 +261,7 @@ move(Player *player, RoomMatrix *matrix, Vector2d direction)
player->sprite->pos.y += TILE_DIMENSION * (int) direction.y;
if (!has_collided(player, matrix, direction)) {
player_step(player);
action_spent(player);
}
}
@ -340,7 +334,7 @@ use_skill(Skill *skill, SkillData *skillData)
skill->active = false;
skill->use(skill, skillData);
if (skill->actionRequired)
player_step(skillData->player);
action_spent(skillData->player);
skill->resetCountdown = skill->resetTime;
}