Want the nerd explanation or the really gummed-down one?
Kliff - Sun May 25, 2003 9:09 pm
Post subject:
How about both? I dunno really much of anything with programming just yet
Smong - Mon May 26, 2003 1:56 pm
Post subject:
Does this help?
if (p->safety)
is the same as
if (p->safety == true) //true is anything but 0 (usually 1)
Also
if (!p->safety)
is the same as
if (p->safety == false) //false is always 0
Rubu - Mon May 26, 2003 9:56 pm
Post subject:
I dont know any of that
Kliff - Tue May 27, 2003 5:20 pm
Post subject:
(Rubu)
Helicon - Tue May 27, 2003 9:01 pm
Post subject:
do you know C++????
ExplodyThingy - Thu May 29, 2003 8:31 pm
Post subject:
Cripes. "p" is a pointer.
Its set up thusly "Player *p"
the safty "class?" (I forget what the hell the parts of classes are called) is boolen (true or flase) i believe. Either that or int (0 or non-0).
flags is an int that counts the number of flags on that player. if its 0, then the conditional will resolve false (ie: the if statement ill not be true), therfore making it not catch if p has no flags.
Go read a book.