Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Properly remove SAO when worldedges are overtaken (#5889)
* LuaEntitySAO: Remove beyond outermost mapchunk edges Based on a commit by, and with help from, nerzhul. Add 2 functions to class Mapgen: A function to calculate actual mapgen edges, called from the Mapgen constructor. A function called indirectly from content_sao.cpp per entity step to check SAO position is within mapgen edges. * Calculate borders from params not mapgen, which is not available everytime
- Loading branch information
Showing
with
84 additions
and 8 deletions.
- +14 −0 src/content_sao.cpp
- +5 −3 src/map.cpp
- +2 −3 src/map.h
- +51 −1 src/mapgen.cpp
- +12 −1 src/mapgen.h