Rev 159 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 159 | Rev 171 | ||
|---|---|---|---|
| Line 24... | Line 24... | ||
| 24 | player->recvbuffer[0] = 0;  | 
            24 | player->recvbuffer[0] = 0;  | 
          
| 25 | 25 | ||
| 26 |    // save player type and color | 
            26 |    // save player type and color | 
          
| 27 | player->type = type;  | 
            27 | player->type = type;  | 
          
| 28 | player->color = color;  | 
            28 | player->color = color;  | 
          
| - | 29 | ||
| - | 30 |    // reset their sleep time | 
          |
| - | 31 | player->sleep_time = 0;  | 
          |
| 29 | 32 | ||
| 30 |    // if internet or computer play, initialize the right interface | 
            33 |    // if internet or computer play, initialize the right interface | 
          
| 31 | if (player->type == PLAYER_INTERNET)  | 
            34 | if (player->type == PLAYER_INTERNET)  | 
          
| 32 |    { | 
            35 |    { | 
          
| 33 |       // if we want online gaming, initialize the network | 
            36 |       // if we want online gaming, initialize the network | 
          
| Line 144... | Line 147... | ||
| 144 |    // this function makes the players think (in case they are not human) | 
            147 |    // this function makes the players think (in case they are not human) | 
          
| 145 | 148 | ||
| 146 | player_t *current_player;  | 
            149 | player_t *current_player;  | 
          
| 147 | player_t *opposite_player;  | 
            150 | player_t *opposite_player;  | 
          
| 148 | bool do_update;  | 
            151 | bool do_update;  | 
          
| - | 152 | ||
| - | 153 | if (player->sleep_time > current_time)  | 
          |
| - | 154 | return (false); // if this player should NOT think yet, then just don't  | 
          |
| 149 | 155 | ||
| 150 | do_update = false; // don't update scene until told otherwise  | 
            156 | do_update = false; // don't update scene until told otherwise  | 
          
| 151 | 157 | ||
| 152 |    // get current and opposite players | 
            158 |    // get current and opposite players | 
          
| 153 | current_player = Player_GetCurrent ();  | 
            159 | current_player = Player_GetCurrent ();  |