add clickable to components if encountered

This commit is contained in:
jacekpoz 2024-08-13 12:50:08 +02:00
parent b1f31b7965
commit 5142127ae0
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -88,14 +88,14 @@ void vk_component(PtkHandle component) {
return;
}
PTK_LIST_ADD(PtkHandle, m_components, component);
if (component->type == PTK_COMPONENT_TYPE_CLICKABLE) {
PtkClickable *c = (PtkClickable *)component;
vk_component(c->hitbox);
return;
}
PTK_LIST_ADD(PtkHandle, m_components, component);
switch (component->type) {
case PTK_COMPONENT_TYPE_TRIANGLE: {
triangle((PtkTriangle *)component, 0);