Browse Source

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
DavidWyand-GG 12 years ago
parent
commit
d095576a25
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Engine/source/T3D/gameBase/gameBase.h

+ 2 - 2
Engine/source/T3D/gameBase/gameBase.h

@@ -409,8 +409,8 @@ public:
    virtual bool isValidCameraFov( F32 fov ) { return true; }
    virtual bool isValidCameraFov( F32 fov ) { return true; }
    virtual bool useObjsEyePoint() const { return false; }
    virtual bool useObjsEyePoint() const { return false; }
    virtual bool onlyFirstPerson() 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
    // Not implemented here, but should return the Camera to world transformation matrix
    virtual void getCameraTransform (F32 *pos, MatrixF *mat ) { *mat = MatrixF::Identity; }
    virtual void getCameraTransform (F32 *pos, MatrixF *mat ) { *mat = MatrixF::Identity; }