foxygit / GZDoom Log in
commits tags

/src/net/webjoin/wj_ticcmd.h · 437 B

raw
// wj_ticcmd.h -- main-thread-only per-gametic driver for phone-joined
// players. Call once per simulated gametic (see TryRunTics in d_net.cpp,
// right before G_Ticker()). This is the ONLY place playeringame[]/
// players[]/netcmds[] are touched on behalf of remote-input slots --
// civetweb's worker threads (wj_server.cpp) never touch them directly,
// only the mutex-guarded structures in wj_input.h.
#pragma once

void WJ_Tick();