Opis forum
w game.cpp na końcu pliku:
Kod:
void Game::sendMagicEffect(const Position pos, unsigned char type)
{
SpectatorVec list;
SpectatorVec::iterator it;
getSpectators(Range(pos, true), list);
for(it = list.begin(); it != list.end(); ++it) {
Player* spectator = dynamic_cast<Player*>(*it);
if (spectator){
spectator->sendMagicEffect(pos, type);
}
}
}
w pliku game.h pod:
Kod:
bool playerRotateItem(Player *player, const Position& pos, const unsigned char stackpos, const unsigned short itemid);
dodaj:
Kod:
void sendMagicEffect(const Position pos, unsigned char type);
Zkasuj wszystkie #ifdef TLM_BEDS i #endif //TLM_BEDS Jeśli istnieje
Offline
tutaj masz dobry bed system
w game.cpp na końcu pliku:
Kod:
void Game::sendMagicEffect(const Position pos, unsigned char type)
{
SpectatorVec list;
SpectatorVec::iterator it;
getSpectators(Range(pos, true), list);
for(it = list.begin(); it != list.end(); ++it) {
Player* spectator = dynamic_cast<Player*>(*it);
if (spectator){
spectator->sendMagicEffect(pos, type);
}
}
}
w pliku game.h pod:
Kod:
bool playerRotateItem(Player *player, const Position& pos, const unsigned char stackpos, const unsigned short itemid);
dodaj:
Kod:
void sendMagicEffect(const Position pos, unsigned char type);
Zkasuj wszystkie #ifdef TLM_BEDS i #endif //TLM_BEDS
Offline