OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2c0769
)
[Refactor] #40512 Changed return type in wiz_dimension_door() from bool to void
author
Hourier
<hourier@users.sourceforge.jp>
Sat, 27 Jun 2020 12:18:42 +0000
(21:18 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Sat, 27 Jun 2020 12:18:42 +0000
(21:18 +0900)
src/wizard/wizard-special-process.c
patch
|
blob
|
history
diff --git
a/src/wizard/wizard-special-process.c
b/src/wizard/wizard-special-process.c
index
a13c85e
..
1bd3aae
100644
(file)
--- 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;
}
/*!