fix casts and make function non inlined (clang fix)

efd/v1
DavoSK 2023-02-01 15:39:51 +01:00
parent 36a4a010c8
commit b578ceffef
2 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ void tooltip_clear(void) {
main_tooltip = (tooltip_node) {0};
}
inline void tooltip_draw_contents(tooltip *desc) {
void tooltip_draw_contents(tooltip *desc) {
if (!desc) return;
nk_layout_row_dynamic(game_ui, 0, 1);

View File

@ -54,7 +54,7 @@ void CreatureSeekFood(ecs_iter_t *it) {
for (int i = 0; i < it->count; i++) {
size_t ents_count;
uint64_t *ents = world_chunk_query_entities(it->entities[i], &ents_count, 2);
int64_t *ents = world_chunk_query_entities(it->entities[i], &ents_count, 2);
float closest_ent_dist = ZPL_F32_MAX;
uint64_t closest_ent = 0;
@ -110,7 +110,7 @@ void CreatureSeekCompanion(ecs_iter_t *it) {
for (int i = 0; i < it->count; i++) {
size_t ents_count;
uint64_t *ents = world_chunk_query_entities(it->entities[i], &ents_count, 2);
int64_t *ents = world_chunk_query_entities(it->entities[i], &ents_count, 2);
float closest_ent_dist = ZPL_F32_MAX;
uint64_t closest_ent = 0;