Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. player.cpp
  2.  
  3. ChatChannel* Player::getCasterTv()
  4. {
  5.     ChatChannel* tvChannel = g_chat.getChannelById(CHANNEL_PRIVATE);
  6.     if(tvChannel)
  7.         return tvChannel;
  8.  
  9.     return NULL;
  10. }
  11.  
  12. player.h
  13.  
  14. #include "chat.h"
  15. class ChatChannel;
  16.  
  17.  
  18. ChatChannel* getCasterTv();
  19.  
  20. if(getCasterTv())
  21.                 {
  22.                     for(UsersMap::iterator it = getCasterTv()->getUsers().begin(); it != getCasterTv()->getUsers().end(); ++it)
  23.                         it->second->getClient()->sendAddTileItem(tile, pos, tile->getClientIndexOfThing(this, item), item);
  24.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement