MCPcopy Create free account
hub / github.com/ZDoom/Raze / G_BuildTiccmd

Function G_BuildTiccmd

source/core/mainloop.cpp:139–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137//==========================================================================
138
139void G_BuildTiccmd(ticcmd_t* cmd)
140{
141 if (sendsave)
142 {
143 sendsave = false;
144 Net_WriteByte(DEM_SAVEGAME);
145 Net_WriteString(savegamefile.GetChars());
146 Net_WriteString(savedescription.GetChars());
147 savegamefile = "";
148 }
149 cmd->ucmd = {};
150 gameInput.getInput(&cmd->ucmd);
151 cmd->consistency = consistency[myconnectindex][(maketic / ticdup) % BACKUPTICS];
152}
153
154//==========================================================================
155//

Callers 1

NetUpdateFunction · 0.85

Calls 4

Net_WriteByteFunction · 0.85
Net_WriteStringFunction · 0.85
getInputMethod · 0.80
GetCharsMethod · 0.45

Tested by

no test coverage detected