Change default damage and white flash

Change both the damage flash and white out values to return 0 by
default.  This prevents a damage flash or white out from displaying for
GameBase derived classes that don't override these methods.  From
https://github.com/GarageGames/Torque3D/issues/395
This commit is contained in:
DavidWyand-GG 2013-10-08 18:21:05 -04:00
parent 9d9c6bf7d3
commit d095576a25

View file

@ -409,8 +409,8 @@ public:
virtual bool isValidCameraFov( F32 fov ) { return true; }
virtual bool useObjsEyePoint() const { return false; }
virtual bool onlyFirstPerson() const { return false; }
virtual F32 getDamageFlash() const { return 1.0f; }
virtual F32 getWhiteOut() const { return 1.0f; }
virtual F32 getDamageFlash() const { return 0.0f; }
virtual F32 getWhiteOut() const { return 0.0f; }
// Not implemented here, but should return the Camera to world transformation matrix
virtual void getCameraTransform (F32 *pos, MatrixF *mat ) { *mat = MatrixF::Identity; }