File tree Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,7 @@ func (p *Parser) bindTeamScores() {
9999 s .score = score
100100
101101 // Register direct updates for the future
102- event .Entity .FindProperty ("m_iTeamNum" ).RegisterPropertyUpdateHandler (func (val st.PropValue ) {
103- s .id = val .IntVal
104- })
102+ // Except for teamId, it doesn't change; players swap teams instead
105103 event .Entity .FindProperty ("m_szClanTeamname" ).RegisterPropertyUpdateHandler (func (val st.PropValue ) {
106104 s .clanName = val .StringVal
107105 })
Original file line number Diff line number Diff line change @@ -219,9 +219,6 @@ func (p *Parser) getTableByName(name string) *sendTable {
219219 return & p .sendTables [i ]
220220 }
221221 }
222- if len (p .sendTables ) > 0 {
223- return & p .sendTables [0 ]
224- }
225222 return nil
226223}
227224
Original file line number Diff line number Diff line change @@ -11,11 +11,6 @@ type ServerClass struct {
1111 entityCreatedHandlers []EntityCreatedHandler
1212}
1313
14- // String returns a human readable identification of the ServerClass.
15- func (sc * ServerClass ) String () string {
16- return sc .Name + " | " + sc .DTName
17- }
18-
1914// FireEntityCreatedEvent triggers all registered EntityCreatedHandlers
2015// on the ServerClass with a new EntityCreatedEvent.
2116func (sc * ServerClass ) FireEntityCreatedEvent (entity * Entity ) {
You can’t perform that action at this time.
0 commit comments