Added random number generator

Fixed typo in calculate camera
Removed some warning
This commit is contained in:
2025-10-05 15:17:37 +01:00
parent 1d70f3ae20
commit 5cabf845b6
8 changed files with 70 additions and 15 deletions

View File

@@ -8,10 +8,10 @@ void UpdateWorld(F32 delta, World *world) {
}
void UpdateNPCs(F32 delta, World *world) {
for(int i = 0; i < world->npcCount; i++) {
for(U32 i = 0; i < world->npcCount; i++) {
updateNPC(delta, &world->npcs[i], world);
}
}
}
void ProcessEvents(SDL_Event *event, World *world) {
PlayerUpdate(event, &world->player);