Fix outstanding tbamud compile errors

This commit is contained in:
kinther 2025-08-31 06:38:31 -07:00
parent 78b2e3ae30
commit 7a188a7cdb
7 changed files with 19 additions and 9 deletions

View file

@ -15,6 +15,8 @@
* functions, move functions, char_from_furniture) out of utils and declare /
* define elsewhere.
*/
#include <stdbool.h>
#ifndef _UTILS_H_ /* Begin header file protection */
#define _UTILS_H_
@ -1149,4 +1151,11 @@ static inline int GET_SPELL_SAVE_DC(struct char_data *ch, int spellnum, int misc
return dc;
}
/* Quick check for any affect flag out of the array */
static inline bool ANY_AFF_FLAGS(const struct char_data *ch) {
for (int i = 0; i < AF_ARRAY_MAX; ++i)
if (AFF_FLAGS(ch)[i] != 0) return true;
return false;
}
#endif /* _UTILS_H_ */