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:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user