Moved level-gain notification to produce better message flow
authorMartin Read <martin@blackswordsonics.com>
Tue, 21 Jan 2014 18:18:07 +0000 (18:18 +0000)
committerMartin Read <martin@blackswordsonics.com>
Tue, 21 Jan 2014 18:18:07 +0000 (18:18 +0000)
u.cc

diff --git a/u.cc b/u.cc
index ea8f2a5..4e2f609 100644 (file)
--- 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)
         {