fix camera debug rect not drawing
This commit is contained in:
parent
065986384e
commit
ccbfc22e84
@ -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) {
|
for (u64 entity_index = 0; entity_index < store->count; ++entity_index) {
|
||||||
__profscope(user_entity_iter);
|
__profscope(user_entity_iter);
|
||||||
|
|
||||||
@ -769,7 +768,7 @@ INTERNAL void user_update(void)
|
|||||||
|
|
||||||
/* Skip undrawable entities */
|
/* Skip undrawable entities */
|
||||||
if (sprite_tag_is_nil(ent->sprite)
|
if (sprite_tag_is_nil(ent->sprite)
|
||||||
&& entity_has_prop(ent, ENTITY_PROP_CAMERA)) {
|
&& !entity_has_prop(ent, ENTITY_PROP_CAMERA)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -953,7 +952,6 @@ INTERNAL void user_update(void)
|
|||||||
* ========================== */
|
* ========================== */
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
/* Queue player move cmd */
|
/* Queue player move cmd */
|
||||||
struct v2 input_move_dir = { 0 };
|
struct v2 input_move_dir = { 0 };
|
||||||
{
|
{
|
||||||
@ -998,8 +996,7 @@ INTERNAL void user_update(void)
|
|||||||
});
|
});
|
||||||
|
|
||||||
/* Queue player fire cmd */
|
/* 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,
|
.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
|
.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
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user