1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Modified SDK for GCC 4.2

This commit is contained in:
Scott Ehlert
2008-09-15 02:50:57 -05:00
parent 86f3bc8a60
commit 7ff7f366d5
696 changed files with 23423 additions and 22634 deletions

View File

@ -105,7 +105,7 @@ void CForceFeedback::StartEffect( CBasePlayer *player, FORCEFEEDBACK_t effect, c
WRITE_BYTE( dir );
// encode duration as a signed int
int duration = (int)params.m_flDuration * 1000.0f;
int duration = (int)(params.m_flDuration * 1000.0f);
WRITE_LONG( duration );
// encode gain as a byte
@ -152,4 +152,4 @@ void CForceFeedback::ResumeAll( CBasePlayer *player )
WRITE_BYTE( FFMSG_RESUME ); // Resume effects
MessageEnd();
}
}