Jump to content

Home

Question about bit flags.


Recommended Posts

In g_local.h why do these two flags have the same value?

#define FL_UNDYING				0x00100000	// takes damage down to 1, but never dies

//ex-eFlags -rww
#define	FL_BOUNCE				0x00100000		// for missiles

 

or does it not matter because their never compared?

Link to post
Share on other sites

Well:

 

1) FL_UNDYING is not used in MP

2) FL_UNDYING is used for players and FL_BOUNCE is used for projectiles and such and thus they can share the same value since they wont conflict (code knows the types that FL_BOUNCE is supposed to affect).

Link to post
Share on other sites
×
×
  • Create New...