View Single Post
Re: POD-bot back into shape.
Old
  (#516)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: POD-bot back into shape. - 16-04-2004

1. The official metamod is cross-compiled by GCC on Linux for Windows, and perhaps it's compiled with Unicode strings instead of plain ASCII, or perhaps it contains debug symbols.

2. Even with the same settings, different compilers produce different sizes for the output... Mine was compiled with VS Pro 6.

3. The correct code is rather
&& (pEdict->v.weapons & (1 << CS_WEAPON_FLASHBANG) == 0))
You forgot the last parenthesises ; they are in the code.
It's not what you say btw ; the priorities are first for the '&', and then for the '==' ; hence it's rather
&& ((pEdict->v.weapons & (1 << CS_WEAPON_FLASHBANG)) == 0))
or if you want
&& !(pEdict->v.weapons & (1 << CS_WEAPON_FLASHBANG)))



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."