This was a first: I just fixed a Go implementation of this `gslame` function by using int32 rather than int. Turns out the old C/C++ implementation relies on integer overflows. https://github.com/openspy/openspy-core/blob/5993df54c6b289361228920fa0db7209aed4cfe5/code/core/OS/gamespy/gamespy.cpp#L4
openspy-core/code/core/OS/gamespy/gamespy.cpp at 5993df54c6b289361228920fa0db7209aed4cfe5 · openspy/openspy-core

Contribute to openspy/openspy-core development by creating an account on GitHub.

GitHub