mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Another fix for trade exploit (hopefully the last: Fixes #1408)
This commit is contained in:
parent
f3cece8dec
commit
9627146bf4
@ -345,7 +345,7 @@ namespace MWGui
|
||||
x += abs(int(npcTerm - pcTerm));
|
||||
|
||||
int roll = std::rand()%100 + 1;
|
||||
if(roll > x) //trade refused
|
||||
if(roll > x || (mCurrentMerchantOffer < 0) != (mCurrentBalance < 0)) //trade refused
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->
|
||||
messageBox("#{sNotifyMessage9}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user