• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision55d89165bbefffad4d4ac02f054341530f85cca2 (tree)
Time2019-06-29 02:10:45
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #39076 冗長なコメントを削除 (/* Check Experience */)

Change Summary

Incremental Difference

--- a/src/player-effects.c
+++ b/src/player-effects.c
@@ -3922,7 +3922,6 @@ void gain_exp_64(player_type *creature_ptr, s32b amount, u32b amount_frac)
39223922 creature_ptr->max_exp += amount / 5;
39233923 }
39243924
3925- /* Check Experience */
39263925 check_experience();
39273926 }
39283927
@@ -4025,8 +4024,6 @@ void calc_android_exp(player_type *creature_ptr)
40254024 if (i == INVEN_BODY) total_exp += exp / 32;
40264025 }
40274026 creature_ptr->exp = creature_ptr->max_exp = total_exp;
4028-
4029- /* Check Experience */
40304027 check_experience();
40314028 }
40324029
@@ -4037,14 +4034,10 @@ void calc_android_exp(player_type *creature_ptr)
40374034 void lose_exp(player_type *creature_ptr, s32b amount)
40384035 {
40394036 if (creature_ptr->prace == RACE_ANDROID) return;
4040-
4041- /* Never drop below zero experience */
40424037 if (amount > creature_ptr->exp) amount = creature_ptr->exp;
40434038
4044- /* Lose some experience */
40454039 creature_ptr->exp -= amount;
40464040
4047- /* Check Experience */
40484041 check_experience();
40494042 }
40504043
Show on old repository browser