projects
/
heroik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dff204d
)
Fix bad lock logic.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Wed, 27 Aug 2014 10:49:39 +0000
(12:49 +0200)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Wed, 27 Aug 2014 10:49:39 +0000
(12:49 +0200)
scenarios.js
patch
|
blob
|
history
diff --git
a/scenarios.js
b/scenarios.js
index 2b24e6f435bd8eaacf55c283df3a2e4cc5a8b7a9..ce7d3820d13b350191c72bdc6d1b95f8fc23e6e2 100644
(file)
--- a/
scenarios.js
+++ b/
scenarios.js
@@
-223,7
+223,7
@@
function generate (flags, events, nop) {
function canStillHappen (event) {
return issubset(event.requires || [], flags)
&& !(event.unique && contains.call(chosen, event))
- && !
intersects(event.lock || [], locks
);
+ && !
(event.lock && intersects(event.lock || [], locks)
);
}
for (i = 0; i < events; ++i) {