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

reset buildings on round start

This commit is contained in:
Robin Appelman 2017-03-05 15:22:01 +01:00
commit dfce4fd6a1

View file

@ -58,5 +58,9 @@ export function handleGameEvent(packet: GameEventPacket, match: Match) {
const values = <ObjectDestroyedValues>packet.event.values;
delete match.buildings[values.index];
}
break;
case 'teamplay_round_start':
match.buildings = {};
break;
}
}