summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/player.c b/src/player.c
index d65b873..c8e3f7d 100644
--- a/src/player.c
+++ b/src/player.c
@@ -27,11 +27,11 @@ void UpdatePlayer(Entity* player, float deltaTime) {
}
void AddPlayer(float xpos, float ypos) {
- Entity player;
+ Entity player = {0};
player.type = Player_Entity;
player.position = (Vector2) {xpos, ypos};
- player.flags |= (ENTITY_PHYSICS_ACTIVE | ENTITY_VISIBLE);
+ player.flags |= (ENTITY_PHYSICS_ACTIVE);
player.physicsCollider = (Rectangle) {0, 0, 100, 100};
@@ -40,4 +40,4 @@ void AddPlayer(float xpos, float ypos) {
#endif
AddEntity(&player);
-} \ No newline at end of file
+}