@@ -136,11 +136,11 @@ SeismicSimulationFilterBase::SeismicSimStatusCode DomeStyleSeismicFilter::filter
136136 Int life = node->m_life ;
137137
138138 if ( heightMap == nullptr )
139- return SEISMIC_STATUS_INVALID;
139+ return SEISMIC_STATUS_INVALID;
140140
141141
142142 if ( life == 0 )
143- return SEISMIC_STATUS_ACTIVE;
143+ return SEISMIC_STATUS_ACTIVE;
144144 if ( life < 15 )
145145 {
146146 // ADD HEIGHT BECAUSE THE EXPLOSION IS PUSHING DIRT UP
@@ -179,18 +179,18 @@ SeismicSimulationFilterBase::SeismicSimStatusCode DomeStyleSeismicFilter::filter
179179 {
180180 workspace[ (radius - x) + workspaceWidth * (radius + y) ] = height + heightMap->getBilinearSampleSeismicZVelocity ( centerX - x, centerY + y ) ;
181181 if ( y != 0 )
182- workspace[ (radius - x) + workspaceWidth * (radius - y) ] = height + heightMap->getBilinearSampleSeismicZVelocity ( centerX - x, centerY - y ) ;
182+ workspace[ (radius - x) + workspaceWidth * (radius - y) ] = height + heightMap->getBilinearSampleSeismicZVelocity ( centerX - x, centerY - y ) ;
183183 }
184184 if ( y != 0 )
185- workspace[ (radius + x) + workspaceWidth * (radius - y) ] = height + heightMap->getBilinearSampleSeismicZVelocity ( centerX + x, centerY - y ) ;
185+ workspace[ (radius + x) + workspaceWidth * (radius - y) ] = height + heightMap->getBilinearSampleSeismicZVelocity ( centerX + x, centerY - y ) ;
186186 }
187187 }
188188 }
189189
190190 // stuff the values from the workspace into the heightmap's velocities
191191 for (x = 0 ; x < workspaceWidth; ++x)
192- for (y = 0 ; y < workspaceWidth; ++y)
193- heightMap->setSeismicZVelocity ( centerX - radius + x, centerY - radius + y, MIN ( 9 .0f , workspace[ x + workspaceWidth * y ]) );
192+ for (y = 0 ; y < workspaceWidth; ++y)
193+ heightMap->setSeismicZVelocity ( centerX - radius + x, centerY - radius + y, MIN ( 9 .0f , workspace[ x + workspaceWidth * y ]) );
194194
195195 delete [] workspace;
196196
0 commit comments