diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-04-23 22:31:27 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-04-23 22:31:27 -0400 |
commit | cc2230e0039f06a7478878adcbc9ef028a223243 (patch) | |
tree | 1af80e53bc7f6ec6fa7c7d4f89656d61f203808f /src/ui_action.cpp | |
parent | debb080a17eba2b2957e99ba7f1ce0fa0c4d2e4e (diff) |
more rewrites
Diffstat (limited to 'src/ui_action.cpp')
-rw-r--r-- | src/ui_action.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui_action.cpp b/src/ui_action.cpp index a7bb36b..264100d 100644 --- a/src/ui_action.cpp +++ b/src/ui_action.cpp @@ -137,10 +137,8 @@ void actionAction(void) auto e = currentWorld->getNearInteractable(*player); - if (e->type == NPCT) { - if (!NPCp(e)->aiFunc.empty()) - e->interact(); - } + if (e->type == NPCT) + e->interact(); ACTION_EPILOUGE; } |