forked from mirror/openmw-tes3mp
Reject weather dialogue conditions when in an interior cell (Fixes #3437)
This commit is contained in:
parent
844cbc5a14
commit
b6230bd31f
1 changed files with 5 additions and 0 deletions
|
@ -169,6 +169,11 @@ bool MWDialogue::Filter::testSelectStruct (const SelectWrapper& select) const
|
|||
// If not currently in a choice, we reject all conditions that test against choices.
|
||||
return false;
|
||||
|
||||
if (select.getFunction() == SelectWrapper::Function_Weather && !(MWBase::Environment::get().getWorld()->isCellExterior() || MWBase::Environment::get().getWorld()->isCellQuasiExterior()))
|
||||
// Reject weather conditions in interior cells
|
||||
// Note that the original engine doesn't include the "|| isCellQuasiExterior()" check, which could be considered a bug.
|
||||
return false;
|
||||
|
||||
switch (select.getType())
|
||||
{
|
||||
case SelectWrapper::Type_None: return true;
|
||||
|
|
Loading…
Reference in a new issue