diff options
Diffstat (limited to 'linden/indra/newview/llviewerpartsource.cpp')
-rw-r--r-- | linden/indra/newview/llviewerpartsource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerpartsource.cpp b/linden/indra/newview/llviewerpartsource.cpp index e440eae..c0de13a 100644 --- a/linden/indra/newview/llviewerpartsource.cpp +++ b/linden/indra/newview/llviewerpartsource.cpp | |||
@@ -47,6 +47,7 @@ LLViewerPartSource::LLViewerPartSource(const U32 type) : | |||
47 | mLastUpdateTime = 0.f; | 47 | mLastUpdateTime = 0.f; |
48 | mLastPartTime = 0.f; | 48 | mLastPartTime = 0.f; |
49 | mIsDead = FALSE; | 49 | mIsDead = FALSE; |
50 | mIsSuspended = FALSE; | ||
50 | static U32 id_seed = 0; | 51 | static U32 id_seed = 0; |
51 | mID = ++id_seed; | 52 | mID = ++id_seed; |
52 | } | 53 | } |
@@ -93,6 +94,9 @@ void LLViewerPartSourceScript::setDead() | |||
93 | 94 | ||
94 | void LLViewerPartSourceScript::update(const F32 dt) | 95 | void LLViewerPartSourceScript::update(const F32 dt) |
95 | { | 96 | { |
97 | if( mIsSuspended ) | ||
98 | return; | ||
99 | |||
96 | LLMemType mt(LLMemType::MTYPE_PARTICLES); | 100 | LLMemType mt(LLMemType::MTYPE_PARTICLES); |
97 | F32 old_update_time = mLastUpdateTime; | 101 | F32 old_update_time = mLastUpdateTime; |
98 | mLastUpdateTime += dt; | 102 | mLastUpdateTime += dt; |