1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

minor fixes

This commit is contained in:
Robin Appelman 2017-12-09 18:39:26 +01:00
commit aae67aec9c
4 changed files with 23 additions and 10 deletions

View file

@ -130,4 +130,10 @@ export class Match {
}
return null;
}
public getPlayerByUserId(userId: number): Player | null {
const user = this.getUserInfo(userId);
const player = this.playerEntityMap.get(user.entityId);
return player || null;
}
}