diff --git a/include/components/jump_action.h b/include/components/jump_action.h index 603709b..30486b3 100644 --- a/include/components/jump_action.h +++ b/include/components/jump_action.h @@ -14,7 +14,6 @@ struct jump_action { gc_component base; int acceleration; - int max_acceleration; }; extern const struct jump_action jump_action; \ No newline at end of file diff --git a/prefabs/player.gcprefab b/prefabs/player.gcprefab index c0becd8..eaa8540 100644 --- a/prefabs/player.gcprefab +++ b/prefabs/player.gcprefab @@ -12,7 +12,7 @@ - + diff --git a/src/components/jump_component.c b/src/components/jump_component.c index 1f77e23..279684c 100644 --- a/src/components/jump_component.c +++ b/src/components/jump_component.c @@ -24,7 +24,6 @@ static void fdctr(gc_scene *scene, void *component, node *n) struct jump_action *cmp = (struct jump_action *)component; cmp->acceleration = xml_getintprop(n, "acceleration"); - cmp->max_acceleration = xml_getintprop(n, "max_acceleration"); (void)scene; } diff --git a/src/systems/jump_system.c b/src/systems/jump_system.c index 8393659..8b4fec2 100644 --- a/src/systems/jump_system.c +++ b/src/systems/jump_system.c @@ -25,7 +25,7 @@ gc_entity *entity, float dtime) struct movable_component *mov = GETCMP(movable_component); struct jump_action *jump = GETCMP(jump_action); - if (col->distance_down == 0 && mov->acceleration.y < jump->max_acceleration) + if (col->distance_down == 0) mov->acceleration.y += con->jumping * jump->acceleration; (void)system; (void)dtime;