WaterBlock Fluid Bug
by Gary Preston · in Torque Game Engine · 10/09/2007 (12:03 pm) · 1 replies
Intermittently the onEnterLiquid callback for players was not been called when entering a WaterBlock.
WaterBlock calls mFluid.setInfo, with one of the parameters been whether the block is tiled or not. The fluid::setInfo body in engine/terrain/fluidSupport.cc has the parameter as "tiling" along with a member variable "mTile". The member is declared but never initialized.
Obvious Fix:
"mTile" needs setting to the value of "tiling" within the setInfo method.
WaterBlock calls mFluid.setInfo, with one of the parameters been whether the block is tiled or not. The fluid::setInfo body in engine/terrain/fluidSupport.cc has the parameter as "tiling" along with a member variable "mTile". The member is declared but never initialized.
Obvious Fix:
"mTile" needs setting to the value of "tiling" within the setInfo method.
Torque Owner asmaloney (Andy)
Default Studio Name