From 124f425fe8fa064ffdad532b071acda29b83970c Mon Sep 17 00:00:00 2001 From: Hourier Date: Sat, 27 Jun 2020 21:18:42 +0900 Subject: [PATCH] [Refactor] #40512 Changed return type in wiz_dimension_door() from bool to void --- src/wizard/wizard-special-process.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/wizard/wizard-special-process.c b/src/wizard/wizard-special-process.c index a13c85e3a..1bd3aae08 100644 --- a/src/wizard/wizard-special-process.c +++ b/src/wizard/wizard-special-process.c @@ -163,16 +163,15 @@ static bool do_cmd_debug_spell(player_type *creature_ptr) /*! * @brief 必ず成功するウィザードモード用次元の扉処理 / Wizard Dimension Door * @param caster_ptr プレーヤーへの参照ポインタ - * @return 実際にテレポートを行ったらTRUEを返す + * @return なし */ -static bool wiz_dimension_door(player_type *caster_ptr) +static void wiz_dimension_door(player_type *caster_ptr) { POSITION x = 0, y = 0; if (!tgt_pt(caster_ptr, &x, &y)) - return FALSE; + return; teleport_player_to(caster_ptr, y, x, TELEPORT_NONMAGICAL); - return TRUE; } /*! -- 2.11.0