fix camera debug rect not drawing

This commit is contained in:
jacob 2024-08-12 18:02:02 -05:00
parent 065986384e
commit ccbfc22e84

View File

@ -756,10 +756,9 @@ INTERNAL void user_update(void)
/* ---------------------------------------------------------------------- */
/* ========================== *
* Iterate entities
* Draw entities
* ========================== */
/* Iterate entities */
for (u64 entity_index = 0; entity_index < store->count; ++entity_index) {
__profscope(user_entity_iter);
@ -769,7 +768,7 @@ INTERNAL void user_update(void)
/* Skip undrawable entities */
if (sprite_tag_is_nil(ent->sprite)
&& entity_has_prop(ent, ENTITY_PROP_CAMERA)) {
&& !entity_has_prop(ent, ENTITY_PROP_CAMERA)) {
continue;
}
@ -953,7 +952,6 @@ INTERNAL void user_update(void)
* ========================== */
{
/* Queue player move cmd */
struct v2 input_move_dir = { 0 };
{
@ -998,8 +996,7 @@ INTERNAL void user_update(void)
});
/* Queue player fire cmd */
queue_game_cmd(&cmd_list, (struct game_cmd)
{
queue_game_cmd(&cmd_list, (struct game_cmd) {
.kind = GAME_CMD_KIND_PLAYER_FIRE,
.state = (G.bind_states[USER_BIND_KIND_FIRE].num_presses > 0 || G.bind_states[USER_BIND_KIND_FIRE].is_held) ? GAME_CMD_STATE_START : GAME_CMD_STATE_STOP
});