This headache kills me...
Quote:
Originally Posted by Pierre-Marie Baty
For convenience, botman uses bot_t pointers instead of indexing the bots array each time :
bot_t *pBot = &bots[i].pEdict;
and so, later on in his functions, you see things like :
pBot->pEdict->v.v_angle.x = 0; // reset the pitch view angle of the bot (using the engine variables for the bot entity)
|
Maybe a stubid question, but as I said, my c++ is a little bit rusty:
If pBot is a pointer to[i] &bots
.pEdict then why is it
pBot->pEdict->v.v_angle.x = 0; ?