From: Hourier Date: Sat, 27 Jun 2020 12:18:42 +0000 (+0900) Subject: [Refactor] #40512 Changed return type in wiz_dimension_door() from bool to void X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=124f425fe8fa064ffdad532b071acda29b83970c;p=hengband%2Fhengband.git [Refactor] #40512 Changed return type in wiz_dimension_door() from bool to void --- 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; } /*!