1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

notify the user when the merchant doesn't accept the offer

This commit is contained in:
gugus 2012-11-08 21:50:56 +01:00
parent 0a883f4492
commit 4634227f1c

View File

@ -218,6 +218,8 @@ namespace MWGui
int roll = std::rand()%100 + 1;
if(roll > x) //trade refused
{
MWBase::Environment::get().getWindowManager()->
messageBox("#{sNotifyMessage9}", std::vector<std::string>());
/// \todo adjust npc temporary disposition by iBarterSuccessDisposition or iBarterFailDisposition
return ;
}