fix: make it compile
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
#include <SDL3/SDL_keycode.h>
|
#include <SDL3/SDL_keycode.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "../outfit.h"
|
#include "../outfit.h"
|
||||||
#include <npc.h>
|
#include "../npc.h"
|
||||||
|
|
||||||
|
|
||||||
void PlayerInit(G_State *game, Player *player) {
|
void PlayerInit(G_State *game, Player *player) {
|
||||||
@@ -69,11 +69,11 @@ void PlayerInput(SDL_Event *event, Player *player)
|
|||||||
}
|
}
|
||||||
case SDLK_E:
|
case SDLK_E:
|
||||||
{
|
{
|
||||||
for(int i = 0; player->world->npmCount; i++){
|
for(int i = 0; player->world->npcCount; i++){
|
||||||
NPC *npc = player->world->npcs[i];
|
NPC *npc = &player->world->npcs[i];
|
||||||
if(AABB_Circle(npc->interationRadius, npc->collision.pos, player->collision) && !npc->infoGiven){
|
if(AABB_Circle(npc->interationRadius, npc->collision.pos, player->collision) && !npc->infoGiven){
|
||||||
npc->infoGiven=true;
|
npc->infoGiven=true;
|
||||||
player->knownDetails[player->detailCount] = player->world->bandit->outfitChoices[player->detailCount];
|
player->knownDetails[player->detailCount] = player->world->bandit.outfitChoices[player->detailCount];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user