benilla-re systems structs docs

ReceiveNewTimeSpeed

function · unassigned

Address
0x6c5e80 · 193 bytes, up to 0x6c5f40
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Reads a packed date and a rate, passes them to the world clock and logs the speed change, or logs a malformed packet
Confidence
verified, proof one
Name from
the community database (idb)
Finding
net/messages#time-speed-packet

Finding: Time speed packet in net: messages

SMSG_LOGIN_SETTIMESPEED (0x42) is a u32 packed date (gametime/messages#packed-date-fields) and a float rate. A packet not read to its end logs Malformed message recieved: Id = %d, Len = %d, Read = %d and the handler returns 0. Otherwise it decodes the date, sets the clock 0xce8538 to it with force (gametime/overview#setting-the-time), calls the bridge 0x6c5f50 (gametime/messages#time-changed-bridge), stores the rate clamped (gametime/overview#time-scale) and logs Gamespeed set from <old> to <new>, the new value being the rate as received, not as clamped (gametime/messages#game-speed-set). The bridge runs before the rate is stored.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

Calls and jumps by a bare address, from tables/calls.tsv.