diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/hud_msg.cpp | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/hud_msg.cpp')
| -rw-r--r-- | mp/src/game/client/hud_msg.cpp | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/mp/src/game/client/hud_msg.cpp b/mp/src/game/client/hud_msg.cpp index ea20b0b0..e39e43bf 100644 --- a/mp/src/game/client/hud_msg.cpp +++ b/mp/src/game/client/hud_msg.cpp @@ -1,58 +1,58 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-//
-// hud_msg.cpp
-//
-#include "cbase.h"
-#include "clientmode.h"
-#include "hudelement.h"
-#include "KeyValues.h"
-#include "vgui_controls/AnimationController.h"
-#include "engine/IEngineSound.h"
-#include <bitbuf.h>
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-/// USER-DEFINED SERVER MESSAGE HANDLERS
-
-void CHud::MsgFunc_ResetHUD( bf_read &msg )
-{
- ResetHUD();
-}
-
-void CHud::ResetHUD()
-{
- // clear all hud data
- g_pClientMode->GetViewportAnimationController()->CancelAllAnimations();
-
- for ( int i = 0; i < m_HudList.Size(); i++ )
- {
- m_HudList[i]->Reset();
- }
-
- g_pClientMode->GetViewportAnimationController()->RunAllAnimationsToCompletion();
-#ifndef _XBOX
- // reset sensitivity
- m_flMouseSensitivity = 0;
- m_flMouseSensitivityFactor = 0;
-#endif
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-
-void CHud::MsgFunc_SendAudio( bf_read &msg )
-{
- char szString[2048];
- msg.ReadString( szString, sizeof(szString) );
-
- CLocalPlayerFilter filter;
- C_BaseEntity::EmitSound( filter, SOUND_FROM_LOCAL_PLAYER, szString );
-}
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +// +// hud_msg.cpp +// +#include "cbase.h" +#include "clientmode.h" +#include "hudelement.h" +#include "KeyValues.h" +#include "vgui_controls/AnimationController.h" +#include "engine/IEngineSound.h" +#include <bitbuf.h> + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +/// USER-DEFINED SERVER MESSAGE HANDLERS + +void CHud::MsgFunc_ResetHUD( bf_read &msg ) +{ + ResetHUD(); +} + +void CHud::ResetHUD() +{ + // clear all hud data + g_pClientMode->GetViewportAnimationController()->CancelAllAnimations(); + + for ( int i = 0; i < m_HudList.Size(); i++ ) + { + m_HudList[i]->Reset(); + } + + g_pClientMode->GetViewportAnimationController()->RunAllAnimationsToCompletion(); +#ifndef _XBOX + // reset sensitivity + m_flMouseSensitivity = 0; + m_flMouseSensitivityFactor = 0; +#endif +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- + +void CHud::MsgFunc_SendAudio( bf_read &msg ) +{ + char szString[2048]; + msg.ReadString( szString, sizeof(szString) ); + + CLocalPlayerFilter filter; + C_BaseEntity::EmitSound( filter, SOUND_FROM_LOCAL_PLAYER, szString ); +} |