Skip to content

Fix for Lua's "PlayerSpawn" hook

Monster Iestyn requested to merge Lua-playerspawn-hook-fix into next

This fixes how functions for the "PlayerSpawn" Lua hook aren't called when the player respawns at a starpost instead of at a map thing start.

(Note to Lua scripters who may want to adjust their scripts accordingly with this in future, checking if player.starposttime is non-zero is the best way to detect if you're spawning at a starpost or not.)

Merge request reports