1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Fix player double damage

This commit is contained in:
Perttu Ahola 2011-12-02 11:16:51 +02:00
parent c357985135
commit 2dc9a0c724
5 changed files with 11 additions and 3 deletions

View file

@ -2128,6 +2128,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
// Add PlayerSAO
player->m_removed = false;
player->setId(0);
m_env->addActiveObject(player);
/*
@ -2887,6 +2888,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
<<PP(player->getPosition()/BS)<<std::endl;
srp->m_removed = false;
srp->setId(0);
m_env->addActiveObject(srp);
}
else if(command == TOSERVER_INTERACT)