More explicit notation.

This commit is contained in:
Ulysse Cura 2026-07-21 01:43:30 +02:00
parent fef3d87ca6
commit 4c829d1b46
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ static inline void player_system_set_velocity(player_system_data_t *system_data)
transform_component_data->velocity.y =
(float)((system_data->state & PLAYER_RUNNING_DOWN) >> 1) - (float)(system_data->state & PLAYER_RUNNING_UP);
if(is_not_zero(transform_component_data->velocity.x) && is_not_zero(transform_component_data->velocity.y))
if(f_is_not_zero(transform_component_data->velocity.x) && f_is_not_zero(transform_component_data->velocity.y))
{
transform_component_data->velocity.x *= 0.707106781186548f;
transform_component_data->velocity.y *= 0.707106781186548f;

View File

@ -125,7 +125,7 @@ inline void entity_manager_add_entity(entity_manager_t *entity_manager, entity_t
// No args
static inline void action_update_entity(elem_t *elem, va_list args __attribute__((unused)))
{
update_entity(elem->data);
update_entity((entity_t *)elem->data);
}
inline void entity_manager_update(entity_manager_t *entity_manager)
@ -137,7 +137,7 @@ inline void entity_manager_update(entity_manager_t *entity_manager)
// No args
static inline void action_draw_entity(elem_t *elem, va_list args __attribute__((unused)))
{
draw_entity(elem->data);
draw_entity((entity_t *)elem->data);
}
inline void entity_manager_draw(entity_manager_t *entity_manager)