diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/defines.h | 5 | ||||
-rw-r--r-- | src/monster2.cc | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/defines.h b/src/defines.h index 67ed3b6b..4c8039e1 100644 --- a/src/defines.h +++ b/src/defines.h @@ -2967,11 +2967,6 @@ -/*** Monster blow constants ***/ - -#define MODIFY_AUX(o, n) ((o) = modify_aux((o), (n) >> 2, (n) & 3)) -#define MODIFY(o, n, min) MODIFY_AUX(o, n); (o) = ((o) < (min))?(min):(o) - /* * New monster blow methods */ diff --git a/src/monster2.cc b/src/monster2.cc index c3429298..65035cca 100644 --- a/src/monster2.cc +++ b/src/monster2.cc @@ -32,6 +32,9 @@ #define MAX_FUNNY 22 #define MAX_COMMENT 5 +#define MODIFY_AUX(o, n) ((o) = modify_aux((o), (n) >> 2, (n) & 3)) +#define MODIFY(o, n, min) MODIFY_AUX(o, n); (o) = ((o) < (min))?(min):(o) + s32b monster_exp(s16b level) { s32b capped_level = std::min(level, static_cast<s16b>(MONSTER_LEVEL_MAX)); |