daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Jun 17th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ClientGameState ClientState(void)
  2. {
  3.     ClientGameState state = ClientStateNull;
  4.     UnitAny* player = D2CLIENT_GetPlayerUnit();
  5.     Control **firstControl = p_D2WIN_FirstControl;
  6.  
  7.     if(player && !(firstControl))
  8.     {
  9.         if(player->pInventory &&
  10.            player->pPath &&
  11.            //player->pPath->xPos &&
  12.            player->pPath->pRoom1 &&
  13.            player->pPath->pRoom1->pRoom2 &&
  14.            player->pPath->pRoom1->pRoom2->pLevel &&
  15.            player->pPath->pRoom1->pRoom2->pLevel->dwLevelNo)
  16.             state = ClientStateInGame;
  17.         else
  18.             state = ClientStateBusy;
  19.     }
  20.     else if(!player && firstControl)
  21.         state = ClientStateMenu;
  22.     else if(!player && !(firstControl))
  23.         state = ClientStateNull;
  24.  
  25.     return state;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top