This commit is contained in:
Masashi 2025-12-20 15:18:50 +05:30
commit 0bbbb20487
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -28,7 +28,7 @@ typedef int socklen_t;
#define MAX_PLAYERS 16
#define USERNAME_MAX 16
#define TICK_HZ 20
#define TICK_HZ 30
#define DT (1.0f / (float)TICK_HZ)
#define WEAPON_PISTOL 0
@ -1112,7 +1112,7 @@ int main(void) {
// Send room state every few ticks
static uint32_t roomStateTickDiv = 0;
roomStateTickDiv++;
if (roomStateTickDiv >= 30) { // Every 30 ticks, about 0.5s
if (roomStateTickDiv >= 1) { // Every tick, about 0.05s
roomStateTickDiv = 0;
MsgRoomState rs = {0};
rs.type = MSG_ROOM_STATE;