1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-01 23:25:09 +02:00

prevent players from leaving world boundaries

This commit is contained in:
p2r3
2025-08-23 02:30:05 +03:00
parent d0dfa01d9d
commit bbbf137388
3 changed files with 15 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ typedef struct {
char name[16];
int client_fd;
short x;
short y;
uint8_t y;
short z;
short visited_x[VISITED_HISTORY];
short visited_z[VISITED_HISTORY];
@@ -94,6 +94,7 @@ typedef struct {
uint8_t inventory_count[41];
uint8_t craft_count[9];
// 0x01 - attack cooldown
// 0x02 - has not spawned yet
uint8_t flags;
} PlayerData;