diff options
| author | Savander <savander.pl@gmail.com> | 2018-09-28 17:44:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-28 17:44:19 +0200 |
| commit | 012cda5afd013e27e529026b67722609ecd61d41 (patch) | |
| tree | a5c3789c4aa2c93255d824b5eb343172d3642eac /src/game | |
| parent | fc6d8b4d154049e6e3d6df9039669580f8ff747c (diff) | |
| parent | 2cd0223a8df54ae1c8715915a331dfc56a5a29d3 (diff) | |
| download | zcatch-012cda5afd013e27e529026b67722609ecd61d41.tar.gz zcatch-012cda5afd013e27e529026b67722609ecd61d41.zip | |
Merge pull request #4 from Learath2/zcatchspoof
Antispoof
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/server/entities/character.cpp | 6 | ||||
| -rw-r--r-- | src/game/version.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index 30e32a92..cc51d856 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -440,7 +440,7 @@ void CCharacter::FireWeapon() for(unsigned i = 0; i < sizeof(CNetObj_Projectile)/sizeof(int); i++) Msg.AddInt(((int *)&p)[i]); - Server()->SendMsg(&Msg, 0, m_pPlayer->GetCID()); + Server()->SendMsg(&Msg, MSGFLAG_VITAL, m_pPlayer->GetCID()); GameServer()->CreateSound(m_Pos, SOUND_GUN_FIRE); } break; @@ -474,7 +474,7 @@ void CCharacter::FireWeapon() Msg.AddInt(((int *)&p)[i]); } - Server()->SendMsg(&Msg, 0,m_pPlayer->GetCID()); + Server()->SendMsg(&Msg, MSGFLAG_VITAL, m_pPlayer->GetCID()); GameServer()->CreateSound(m_Pos, SOUND_SHOTGUN_FIRE); } break; @@ -500,7 +500,7 @@ void CCharacter::FireWeapon() Msg.AddInt(1); for(unsigned i = 0; i < sizeof(CNetObj_Projectile)/sizeof(int); i++) Msg.AddInt(((int *)&p)[i]); - Server()->SendMsg(&Msg, 0, m_pPlayer->GetCID()); + Server()->SendMsg(&Msg, MSGFLAG_VITAL, m_pPlayer->GetCID()); GameServer()->CreateSound(m_Pos, SOUND_GRENADE_FIRE); } break; diff --git a/src/game/version.h b/src/game/version.h index 76d95dd0..17010c1b 100644 --- a/src/game/version.h +++ b/src/game/version.h @@ -3,7 +3,7 @@ #ifndef GAME_VERSION_H #define GAME_VERSION_H #include "generated/nethash.cpp" -#define GAME_VERSION "0.6.2" +#define GAME_VERSION "0.6.5" #define GAME_NETVERSION "0.6 " GAME_NETVERSION_HASH -static const char GAME_RELEASE_VERSION[8] = {'0', '.', '6', '.', '2', 0}; +static const char GAME_RELEASE_VERSION[8] = {'0', '.', '6', '.', '5', 0}; #endif |