• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision72b3264b1621bb9f236d0337ddcb9320ead20089 (tree)
Time2019-03-13 22:50:42
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 コメント整理。 / Refactor comments.

Change Summary

Incremental Difference

--- a/src/cmd-hissatsu.c
+++ b/src/cmd-hissatsu.c
@@ -343,7 +343,6 @@ void do_cmd_hissatsu(void)
343343
344344 sound(SOUND_ZAP);
345345
346- /* Cast the spell */
347346 if (!do_spell(REALM_HISSATSU, n, SPELL_CAST)) return;
348347
349348 take_turn(p_ptr, 100);
--- a/src/mane.c
+++ b/src/mane.c
@@ -964,10 +964,7 @@ bool do_cmd_mane(bool baigaesi)
964964 else
965965 {
966966 sound(SOUND_ZAP);
967-
968- /* Cast the spell */
969967 cast = use_mane(p_ptr->mane_spell[n]);
970-
971968 if (!cast) return FALSE;
972969 }
973970
--- a/src/mspells3.c
+++ b/src/mspells3.c
@@ -1462,16 +1462,12 @@ bool do_cmd_cast_learned(void)
14621462 sound(SOUND_FAIL);
14631463
14641464 if (n >= MS_S_KIN)
1465- /* Cast the spell */
14661465 cast = cast_learned_spell(n, FALSE);
14671466 }
14681467 else
14691468 {
14701469 sound(SOUND_ZAP);
1471-
1472- /* Cast the spell */
14731470 cast = cast_learned_spell(n, TRUE);
1474-
14751471 if (!cast) return FALSE;
14761472 }
14771473
--- a/src/snipe.c
+++ b/src/snipe.c
@@ -526,7 +526,7 @@ static bool cast_sniper_spell(int spell)
526526 void do_cmd_snipe(void)
527527 {
528528 COMMAND_CODE n = 0;
529- bool cast;
529+ bool cast;
530530
531531 if(cmd_limit_confused(p_ptr)) return;
532532 if(cmd_limit_image(p_ptr)) return;
@@ -535,13 +535,10 @@ void do_cmd_snipe(void)
535535 if (!get_snipe_power(&n, FALSE)) return;
536536
537537 sound(SOUND_SHOOT);
538-
539- /* Cast the spell */
540538 cast = cast_sniper_spell(n);
541539
542540 if (!cast) return;
543541 p_ptr->redraw |= (PR_HP | PR_MANA);
544-
545542 p_ptr->window |= (PW_PLAYER);
546543 p_ptr->window |= (PW_SPELL);
547544 }
Show on old repository browser