forked from EXTERNAL/bareiron
add missing flag check and docs
This commit is contained in:
@@ -114,6 +114,7 @@ typedef struct {
|
||||
// 0x04 - sneaking
|
||||
// 0x08 - sprinting
|
||||
// 0x10 - eating, makes extra8 act as eating timer
|
||||
// 0x20 - client not fully loaded
|
||||
uint8_t flags;
|
||||
} PlayerData;
|
||||
|
||||
|
@@ -1019,6 +1019,7 @@ void handleServerTick (int64_t time_since_last_tick) {
|
||||
// Update player events
|
||||
for (int i = 0; i < MAX_PLAYERS; i ++) {
|
||||
if (player_data[i].client_fd == -1) continue;
|
||||
if (player_data[i].flags & 0x20) continue;
|
||||
// Send Keep Alive and Update Time packets
|
||||
sc_keepAlive(player_data[i].client_fd);
|
||||
sc_updateTime(player_data[i].client_fd, world_time);
|
||||
|
Reference in New Issue
Block a user