add clickable to components if encountered
This commit is contained in:
parent
b1f31b7965
commit
5142127ae0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue