mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Reduced number of cells (doubled max visibility distance).
Use 2D distance for visibility checks.
This commit is contained in:
parent
9254ca19e6
commit
d00a453863
9 changed files with 28 additions and 24 deletions
|
|
@ -41,10 +41,10 @@ class Player;
|
|||
#define MIN_GRID_DELAY MINUTE*1000
|
||||
#define MIN_MAP_UPDATE_DELAY 50
|
||||
|
||||
#define MAX_NUMBER_OF_CELLS 8
|
||||
#define MAX_NUMBER_OF_CELLS 4
|
||||
#define SIZE_OF_GRID_CELL (SIZE_OF_GRIDS/MAX_NUMBER_OF_CELLS)
|
||||
|
||||
#define CENTER_GRID_CELL_ID 256
|
||||
#define CENTER_GRID_CELL_ID 128
|
||||
#define CENTER_GRID_CELL_OFFSET (SIZE_OF_GRID_CELL/2)
|
||||
|
||||
#define TOTAL_NUMBER_OF_CELLS_PER_MAP (MAX_NUMBER_OF_GRIDS*MAX_NUMBER_OF_CELLS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue