Sorry for the newbie C++ coder question, but wouldn't it be wrong to use a
comparison on a return statement like was suggested? Is the !! an operator?
I haven't seen it before. From this thread I'm guessing that it converts any
>0 value to a 1 and any <0 value to 0, making the return perform an
assignment before returning? Just a guess. I know this is a little OT I
guess, so feel free to answer me off-list if you know. Thanks! =)

-Nick


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:hlcoders-admin@;list.valvesoftware.com]On Behalf Of Mark Gornall
Sent: Thursday, October 17, 2002 12:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [hlcoders] little bug in the SDK 2.3 ?


valve use '!!' a few times in the sdk so it's probably deliberate.


-----Original Message-----
From: Cortex [mailto:cort@;meloo.com]
Sent: 17 October 2002 16:51
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] little bug in the SDK 2.3 ?


Oh yes, it could be a good explanation.
But, why wouldn't it be :
return (gEngfuncs.GetPlayerUniqueID( iPlayer, playerID ) != 0);

? It's much more concise... And it doesn't look as a mistake :p

     - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st )
     - email : [EMAIL PROTECTED]  &  ICQ : 71548738

David Flor <[EMAIL PROTECTED]> nous disait :

> Don't know if it's meant to be that way, but the "!!" convention
> ensures that the value is ALWAYS either a one or a zero.
>

__________________________________________________________
This mail has been scanned for all known viruses by UUNET
delivered through the MessageLabs Virus Control Centre.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to