Control: tags -1 patch Game works on stretch.
Index: xevil-2.02r2/cmn/game.cpp =================================================================== --- xevil-2.02r2.orig/cmn/game.cpp +++ xevil-2.02r2/cmn/game.cpp @@ -577,7 +577,7 @@ void GameObjects::level_reset(const Dim assert(maximums[weapons[n]->classId] == 0); // Don't allow objectWorldPercent values that are too small. - float objWPercent = (float)max(weapons[n]->objectWorldPercent, + float objWPercent = (float)MAX(weapons[n]->objectWorldPercent, OBJECT_WORLD_PERCENT_MIN); maximums[weapons[n]->classId] = (int)ceil(areaFactor * objWPercent); @@ -590,7 +590,7 @@ void GameObjects::level_reset(const Dim for (n = 0; n < oItemsNum; n++) { // Check not already set. assert(maximums[oItems[n]->classId] == 0); - float objWPercent = (float)max(oItems[n]->objectWorldPercent, + float objWPercent = (float)MAX(oItems[n]->objectWorldPercent, OBJECT_WORLD_PERCENT_MIN); maximums[oItems[n]->classId] = (int)ceil(areaFactor * objWPercent); Index: xevil-2.02r2/cmn/utils.h =================================================================== --- xevil-2.02r2.orig/cmn/utils.h +++ xevil-2.02r2/cmn/utils.h @@ -98,11 +98,11 @@ extern "C" { #define MSEC_PER_CLOCK (1.0e3 / CLOCKS_PER_SEC) #endif -#ifndef max -#define max(a,b) (a<b ? b : a) +#ifndef MAX +#define MAX(a,b) (a<b ? b : a) #endif -#ifndef min -#define min(a,b) (a>b ? b : a) +#ifndef MIN +#define MIN(a,b) (a>b ? b : a) #endif #if X11
smime.p7s
Description: S/MIME cryptographic signature