code: fixed minor stuff
parent
028cdb34b2
commit
fbf9129b8a
|
@ -25,7 +25,7 @@ bool debug_draw_state(void) {
|
|||
return draw_is_enabled;
|
||||
}
|
||||
|
||||
inline void debug_push_entry(debug_draw_entry entry) {
|
||||
static inline void debug_push_entry(debug_draw_entry entry) {
|
||||
if (!draw_is_enabled) return;
|
||||
if (game_get_kind() == GAMEKIND_HEADLESS) return;
|
||||
ZPL_ASSERT(draw_queue.num_entries < DEBUG_DRAW_MAX_ENTRIES);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
static uint8_t inv_selected_item = 0;
|
||||
static bool inv_drop_item = false;
|
||||
static bool inv_is_open = false;
|
||||
bool inv_is_open = false;
|
||||
|
||||
static bool inv_item_is_held = false;
|
||||
static uint8_t inv_held_item_idx = 0;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include "source/system_vehicle.c"
|
||||
#include "source/system_items.c"
|
||||
|
||||
inline float physics_correction(float x, float vx, float bounce) {
|
||||
static inline float physics_correction(float x, float vx, float bounce) {
|
||||
float r = (((zpl_max(0.0f, (WORLD_BLOCK_SIZE/2.0f) - zpl_abs(x))*zpl_sign(x)))*(WORLD_BLOCK_SIZE/2.0f));
|
||||
return r + (-vx*bounce);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
#include "flecs/flecs.h"
|
||||
|
||||
inline float safe_dt(ecs_iter_t *it) {
|
||||
static inline float safe_dt(ecs_iter_t *it) {
|
||||
return zpl_min(it->delta_time, 0.03334f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue