Skip to content

Commit

Permalink
Fix campaign.
Browse files Browse the repository at this point in the history
Seems isReceivingAllEvents should not be set globally.
  • Loading branch information
KJeff01 authored Aug 2, 2017
1 parent d0dd6cf commit 6a6eaf9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions data/base/script/campaign/libcampaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -2602,10 +2602,6 @@ function __camRetreatVtols()
// or something BAD would happen.
////////////////////////////////////////////////////////////////////////////////

// To capture events for non human players upon game load or just by starting a
// mission.
isReceivingAllEvents = true;

//;; \subsection{camAreaEvent(label, function(droid))}
//;; Implement eventArea<label> in a debugging-friendly way. The function
//;; marks the area until the event is triggered, and traces entering the area
Expand Down Expand Up @@ -2721,6 +2717,7 @@ function cam_eventChat(from, to, message)

function cam_eventStartLevel()
{
isReceivingAllEvents = true;
// Variables initialized here are the ones that should not be
// re-initialized on save-load. Otherwise, they are initialized
// on the global scope (or wherever necessary).
Expand Down Expand Up @@ -2844,6 +2841,7 @@ function cam_eventAttacked(victim, attacker)
//missions or else it reverts to the original texture.
function cam_eventGameLoaded()
{
isReceivingAllEvents = true;
const SCAV_KEVLAR_MISSIONS = [
"CAM_1CA", "SUB_1_5S", "CAM_1A-C", "SUB_1_DS",
];
Expand Down

0 comments on commit 6a6eaf9

Please sign in to comment.