martypenner / woodtrader

1 stars 0 forks source link

Disallow player movement while talking with traders #4

Closed martypenner closed 11 years ago

martypenner commented 11 years ago

This was the case in a far earlier version of the game, but somewhere, somehow, a regression snuck in.

martypenner commented 11 years ago

I should add that the call to check if the "confirm" button has been pressed to initiate the dialog is being called twice. Strange.

martypenner commented 11 years ago

No guard clause was in effect to check whether the player was near to the current trader being checked (for distance to the player), so the code was being called once for every trader spawned. Since we originally only had 1 trader in-game, there was no issue.