From 7340edd7aff976a5a45d67376f928f541dd55697 Mon Sep 17 00:00:00 2001 From: Martin Read Date: Tue, 21 Jan 2014 18:18:07 +0000 Subject: [PATCH] Moved level-gain notification to produce better message flow --- u.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u.cc b/u.cc index ea8f2a5..4e2f609 100644 --- a/u.cc +++ b/u.cc @@ -514,6 +514,7 @@ void gain_experience(int amount) if (u.experience > lev_threshold(u.level)) { u.level++; + notify_level_gain(); if (!zero_die(2)) { bodygain = gain_body(2); @@ -524,7 +525,6 @@ void gain_experience(int amount) bodygain = gain_body(1); agilgain = gain_agility(2); } - notify_level_gain(); hpgain = u.body / 10 + 10; if (u.hpmax + hpgain > 999) { -- 2.11.0