Fixed a bug that respawned players moves quickly for a moment

This commit is contained in:
yvt 2013-09-13 03:40:19 +09:00
parent d70b65495e
commit 6cc38e07b5

View File

@ -1022,6 +1022,13 @@ namespace spades {
lastPlayerInput = 0xffffffff;
lastWeaponInput = 0xffffffff;
}else{
if(team < 2 && pId < (int)playerPosRecords.size()) {
PosRecord& rec = playerPosRecords[pId];
rec.valid = true;
rec.pos = pos;
rec.time = GetWorld()->GetTime();
}
if(savedPlayerTeam[pId] != team && team < 2){
client->PlayerJoinedTeam(p);