Try / OpenGothic

Reimplementation of Gothic 2 Notr
MIT License
1.07k stars 78 forks source link

Fix npcs not standing up on player interaction #615

Closed thokkat closed 2 weeks ago

thokkat commented 2 weeks ago

Praying/Sitting npcs who can't see the player when interacted with are made stand up by their script state end function. In Npc::startState aiQueue is cleared after calling the end function so stand up never happens. This is resolved by swapping clearAiQueue and clearState.

Try commented 2 weeks ago

Merged, thanks @thokkat !