--- deliantra/server/common/living.c 2006/03/15 15:35:46 1.6 +++ deliantra/server/common/living.c 2006/03/21 05:36:56 1.7 @@ -1543,13 +1543,13 @@ dragon_level_gain(who); /* Only roll these if it is the player (who) that gained the level */ - if(who && op==who && (who->level < 11) && who->type==PLAYER) { + if(op==who && (who->level < 11) && who->type==PLAYER) { who->contr->levhp[who->level] = die_roll(2, 4, who, PREFER_HIGH)+1; who->contr->levsp[who->level] = die_roll(2, 3, who, PREFER_HIGH); who->contr->levgrace[who->level]=die_roll(2, 2, who, PREFER_HIGH)-1; } - if(who) fix_player(who); + fix_player(who); if(op->level>1) { if (op->type!=PLAYER) sprintf(buf,"You are now level %d in the %s skill.",op->level,op->name); @@ -1560,10 +1560,10 @@ player_lvl_adj(who,op); /* To increase more levels */ } else if (op->level>1 && op->stats.explevel,who->expmul)) { op->level--; - if(who) fix_player(who); + fix_player(who); if(op->type!=PLAYER) { sprintf(buf,"You are now level %d in the %s skill.",op->level,op->name); - if(who) new_draw_info(NDI_UNIQUE|NDI_RED, 0, who,buf); + new_draw_info(NDI_UNIQUE|NDI_RED, 0, who,buf); } player_lvl_adj(who,op); /* To decrease more levels */ }