Add static keyword to ease inout sine function
This commit is contained in:
@@ -48,7 +48,7 @@ static f32 bzEaseInSine(f32 x) {
|
|||||||
static f32 bzEaseOutSine(f32 x) {
|
static f32 bzEaseOutSine(f32 x) {
|
||||||
return sinf((x * M_PI) / 2.0f);
|
return sinf((x * M_PI) / 2.0f);
|
||||||
}
|
}
|
||||||
f32 bzEaseInOutSine(f32 x) {
|
static f32 bzEaseInOutSine(f32 x) {
|
||||||
return -(-cosf(M_PI * x) - 1) / 2.0f;
|
return -(-cosf(M_PI * x) - 1) / 2.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,10 +24,7 @@ void updateUnitAISystem(ecs_iter_t *it) {
|
|||||||
ecs_entity_t entity = it->entities[i];
|
ecs_entity_t entity = it->entities[i];
|
||||||
|
|
||||||
Action *firstAction = action[i].first;
|
Action *firstAction = action[i].first;
|
||||||
if (firstAction)
|
unitAI[i].action = firstAction;
|
||||||
unitAI[i].action = firstAction;
|
|
||||||
else
|
|
||||||
unitAI[i].action = NULL;
|
|
||||||
|
|
||||||
updateUnitAI(entity, &unitAI[i], game);
|
updateUnitAI(entity, &unitAI[i], game);
|
||||||
}
|
}
|
||||||
@@ -111,6 +111,11 @@ void renderRotationDirection(ecs_iter_t *it);
|
|||||||
*/
|
*/
|
||||||
void renderDebugPath(ecs_iter_t *it);
|
void renderDebugPath(ecs_iter_t *it);
|
||||||
|
|
||||||
|
/**********************************
|
||||||
|
* Event Systems
|
||||||
|
**********************************/
|
||||||
|
|
||||||
|
i32 harvestEvent(ecs_entity_t entity, HarvestEvent event);
|
||||||
|
|
||||||
|
|
||||||
/**********************************
|
/**********************************
|
||||||
Reference in New Issue
Block a user