@@ -283,7 +283,7 @@ function fmcGrowthControl:update(dt)
283283 -- cellToUpdate = cellToUpdate - 1
284284 -- end
285285
286- fmcGrowthControl .updateFoliageCell (self , cellToUpdate , fmcGrowthControl .lastDay , pctCompleted )
286+ fmcGrowthControl .updateFoliageCell (self , cellToUpdate , 0 , fmcGrowthControl .lastDay , pctCompleted )
287287 --
288288 fmcGrowthControl .lastGrowth = fmcGrowthControl .lastGrowth - 1
289289 if fmcGrowthControl .lastGrowth <= 0 then
@@ -304,7 +304,7 @@ function fmcGrowthControl:update(dt)
304304 local pctCompleted = ((totalCells - fmcGrowthControl .lastWeather ) / totalCells ) + 0.01 -- Add 1% to get clients to render "%"
305305 local cellToUpdate = (fmcGrowthControl .lastWeather * 271 ) % (fmcGrowthControl .gridCells * fmcGrowthControl .gridCells )
306306
307- fmcGrowthControl .updateFoliageWeatherCell (self , cellToUpdate , fmcGrowthControl .weatherInfo , fmcGrowthControl .lastDay , pctCompleted )
307+ fmcGrowthControl .updateFoliageCell (self , cellToUpdate , fmcGrowthControl .weatherInfo , fmcGrowthControl .lastDay , pctCompleted )
308308 --
309309 fmcGrowthControl .lastWeather = fmcGrowthControl .lastWeather - 1
310310 if fmcGrowthControl .lastWeather <= 0 then
@@ -544,15 +544,7 @@ function fmcGrowthControl:createWeedFoliage(centerX,centerZ,radius,weedType, noE
544544end
545545
546546--
547- function fmcGrowthControl :updateFoliageCell (cellToUpdate , day , pctCompleted , noEventSend )
548- local x = math.floor (fmcGrowthControl .gridCellWH * math.floor (cellToUpdate % fmcGrowthControl .gridCells ))
549- local z = math.floor (fmcGrowthControl .gridCellWH * math.floor (cellToUpdate / fmcGrowthControl .gridCells ))
550- local sx ,sz = (x - (g_currentMission .terrainSize / 2 )),(z - (g_currentMission .terrainSize / 2 ))
551-
552- fmcGrowthControl :updateFoliageCellXZWH (sx ,sz , fmcGrowthControl .gridCellWH - 0.1 , 0 , day , pctCompleted , noEventSend )
553- end
554-
555- function fmcGrowthControl :updateFoliageWeatherCell (cellToUpdate , weatherInfo , day , pctCompleted , noEventSend )
547+ function fmcGrowthControl :updateFoliageCell (cellToUpdate , weatherInfo , day , pctCompleted , noEventSend )
556548 local x = math.floor (fmcGrowthControl .gridCellWH * math.floor (cellToUpdate % fmcGrowthControl .gridCells ))
557549 local z = math.floor (fmcGrowthControl .gridCellWH * math.floor (cellToUpdate / fmcGrowthControl .gridCells ))
558550 local sx ,sz = (x - (g_currentMission .terrainSize / 2 )),(z - (g_currentMission .terrainSize / 2 ))
0 commit comments