mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
Improve asteroid generation performance
This commit is contained in:
@@ -19,4 +19,11 @@
|
||||
#define ROOM_TEMP_CHAR 4
|
||||
#define MONSTER_CHAR 5
|
||||
#define ARTIFACT_TURF_CHAR 6
|
||||
#define ARTIFACT_CHAR 7
|
||||
#define ARTIFACT_CHAR 7
|
||||
|
||||
#define GET_MAP_CELL(X,Y) ((((Y) - 1) * limit_x) + (X))
|
||||
#define PREPARE_CELL(X,Y) \
|
||||
tmp_cell = GET_MAP_CELL(X,Y);\
|
||||
if (tmp_cell < 1 || tmp_cell > map.len) {\
|
||||
tmp_cell = null;\
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user