Guest User

voodooconst.h

a guest
Apr 3rd, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.04 KB | None | 0 0
  1. diff --git a/gemrb/includes/voodooconst.h b/gemrb/includes/voodooconst.h
  2. index a5f998d..9129f97 100644
  3. --- a/gemrb/includes/voodooconst.h
  4. +++ b/gemrb/includes/voodooconst.h
  5. @@ -53,8 +53,7 @@ static const int VOODOO_FINDTRAP_RANGE = 10;
  6.  // test cases: tob pp summoning spirit, pst portals, pst AR0405, AR0508, ar0500 (guards through gates)
  7.  // it's about 3 times bigger in pst, perhaps related to the bigger sprite sizes and we modify it in Scriptable
  8.  // The distance of operating a trigger, container, dialog buffer etc.
  9. -static unsigned int MAX_OPERATING_DISTANCE = 40; //a search square is 16x12 (diagonal of 20), so that's about two
  10. -static const unsigned int ___MOD = MAX_OPERATING_DISTANCE; // just to silence var-unused errors
  11. +static unsigned int MAX_OPERATING_DISTANCE __attribute__((unused)) = 40; //a search square is 16x12 (diagonal of 20), so that's about two
  12.  
  13.  // used for the shout action, supposedly "slightly larger than the default visual radius of NPCs"
  14.  // while it looks too big, it is needed this big in at least pst (help())
Add Comment
Please, Sign In to add comment