forked from mirror/openmw-tes3mp
various fixes
This commit is contained in:
parent
6643674b13
commit
d7af9fbec6
2 changed files with 4 additions and 3 deletions
|
@ -6,6 +6,7 @@
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,11 +9,11 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
FailedAction::FailedAction (const std::string& msg) : Action (false), message(msg)
|
FailedAction::FailedAction (const std::string& msg) : Action (false), message(msg)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|
||||||
void FailedAction::executeImp (const Ptr& actor)
|
void FailedAction::executeImp (const Ptr& actor)
|
||||||
{
|
{
|
||||||
if ( actor.getRefData().getHandle()=="player" and !(message.empty()))
|
if ( actor.getRefData().getHandle()=="player" && !(message.empty()))
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getWindowManager() ->messageBox(message, std::vector<std::string>());
|
MWBase::Environment::get().getWindowManager() ->messageBox(message, std::vector<std::string>());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue