jinc0930 / Clue

A game
2 stars 0 forks source link

Looks like a single character is occupying all slots from a single room #19

Closed mishimalisa closed 2 years ago

mishimalisa commented 2 years ago

image

jinc0930 commented 2 years ago

i dont know why i dont know how :<

mishimalisa commented 2 years ago

i dont know why i dont know how :<

I found the root of the problem, this line (142) is adding the same character pointer 6 times. Also is not checking for the slot in the room that it should set

https://github.com/jinc0930/Clue/blob/b1ebd823e84525086f9cfe185c3d114cedd298de/rooms.c#L136-L150

jinc0930 commented 2 years ago

it's not adding? it;s an if statement, it checks if it is there

mishimalisa commented 2 years ago

Then it should be == not = i think

mishimalisa commented 2 years ago

Maybe solved here, @jinc0930 if your logic is working then it should be working, please review the changes that i made. I just made changes corresponding to your logic, i like your logic. But i didn't test yet. Maybe i broke something.