gam
This commit is contained in:
parent
0c0cfef186
commit
0bbbb20487
2 changed files with 2 additions and 2 deletions
BIN
game/server
BIN
game/server
Binary file not shown.
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue