mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-31 09:27:18 +02:00
Fix outstanding tbamud compile errors
This commit is contained in:
parent
78b2e3ae30
commit
7a188a7cdb
7 changed files with 19 additions and 9 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue