Skip to content

Commit

Permalink
Merge pull request doublespeakgames#225 from anubisthejackle/master
Browse files Browse the repository at this point in the history
Limit Fire event to only Outside module
  • Loading branch information
groteworld committed Feb 9, 2015
2 parents 8010597 + 25b2fbf commit afe1230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/events/outside.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Events.Outside = [
{
title: _('Fire'),
isAvailable: function() {
return $SM.get('game.buildings["hut"]', true) > 0 && $SM.get('game.population', true) > 5;
return Engine.activeModule == Outside && $SM.get('game.buildings["hut"]', true) > 0 && $SM.get('game.population', true) > 5;
},
scenes: {
'start': {
Expand Down

0 comments on commit afe1230

Please sign in to comment.