Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player.cpp
- ChatChannel* Player::getCasterTv()
- {
- ChatChannel* tvChannel = g_chat.getChannelById(CHANNEL_PRIVATE);
- if(tvChannel)
- return tvChannel;
- return NULL;
- }
- player.h
- #include "chat.h"
- class ChatChannel;
- ChatChannel* getCasterTv();
- if(getCasterTv())
- {
- for(UsersMap::iterator it = getCasterTv()->getUsers().begin(); it != getCasterTv()->getUsers().end(); ++it)
- it->second->getClient()->sendAddTileItem(tile, pos, tile->getClientIndexOfThing(this, item), item);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement