Skip to content

Commit 1a2e522

Browse files
committed
Valve magic number
Don't ask any questions
1 parent 6cf1563 commit 1a2e522

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

constants.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ const (
2828
stNameUserInfo = "userinfo"
2929
stNameModelPreCache = "modelprecache"
3030
)
31+
32+
// We're all better off not asking questions
33+
const valveMagicNumber = 76561197960265728

packet_handlers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ func getCommunityID(guid string) int64 {
512512
panic(errID.Error())
513513
}
514514

515-
// FIXME: WTF are we doing here???
516-
return 76561197960265728 + authID*2 + authSrv
515+
// WTF are we doing here?
516+
return valveMagicNumber + authID*2 + authSrv
517517
}
518518

519519
func (p *Parser) handleUpdateStringTable(tab *msg.CSVCMsg_UpdateStringTable) {

0 commit comments

Comments
 (0)