appropriately as of a block on predicat.c, and the amoutn being allocated
into a division quota wasn't being calculated properely.
}
for (pg_indx = 0; pg_indx < pg_cnt; reset = 0, pg_indx++) {
p = p_buf[pg_indx];
- if (*p == '!') {
+ if (*p == NOT_TOKEN) {
reset++;
p++;
}
if(Typeof(target) == TYPE_PLAYER) {
for(cnt = cur_obj = 0; cur_obj < db_top ; cur_obj++)
- if(Owner(cur_obj) == target && Division(cur_obj) == Division(target))
+ if(!IsPlayer(cur_obj) &&
+ (Owner(cur_obj) == target)
+ && (Division(cur_obj) == Division(target)))
cnt++;
} else cnt = 1;
int curr;
/* Check to make sure they can pass the division first */
- curr = get_current_quota(Division(who));
+ if(GoodObject(Division(who))) {
+ curr = get_current_quota(Division(who));
- if(USE_QUOTA && !NoQuota(Division(who)) && (curr - cost < 0))
- return 0;
+ if(USE_QUOTA && !NoQuota(Division(who)) && (curr - cost < 0))
+ return 0;
+ }
/* some people don't need a quota */
if (NoQuota(who))