aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/item_entity.lua
AgeCommit message (Collapse)Author
2015-09-29Some map border related fixesest31
1. Check for entity addition success in spawn_item implementation 2. Check for success in item_drop callback, so that the player doesn't lose the item if they are outside bounds and try to drop it. 3. When existing player joins game, check that their position is inside map bounds. If not, set their position to the return value of findSpawnPos(). 4. Make findSpawnPos() respect the border 2 fixes a lua crash if a player drops an item outside map bounds. 3 fixes an assertion crash if a player leaves when being outside map bounds, and then rejoins.
2015-05-15Don't crash if an item gets dropped into unloaded spacetenplus1
Items dropped into unloaded map space will crash game so here's a fix...
2015-05-15Item entity merging refactorest31
Don't ident too much, and add a comment.
2014-12-04Make dropped items larger and rotate fasterCalinou
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-19Add strict moduleShadowNinja
Also fix leaking globals found by it.
2014-05-23Item entity stacks merge on the ground.RealBadAngel
Add TTL to item entities.
2014-05-08Use "core" namespace internallyShadowNinja
2014-05-07Organize builtin into subdirectoriesShadowNinja