All patches by Zack Middleton:

- Bug 5057  - Two weapon number range checks allows invalid number
- Bug 5058  - Railgun explosion cannot be colorized
- Bug 5059  - Client's railgun does not glow in third person and mirror
- Bug 5060  - Warning in RAVENMD4 R_GetAnimTag cross compiling with amd64-mingw32
This commit is contained in:
Thilo Schulz 2011-06-27 23:53:40 +00:00
parent 2f502aceb2
commit c52bfbd5a8
3 changed files with 8 additions and 4 deletions

View file

@ -410,7 +410,7 @@ static void CG_Missile( centity_t *cent ) {
// int col;
s1 = &cent->currentState;
if ( s1->weapon > WP_NUM_WEAPONS ) {
if ( s1->weapon >= WP_NUM_WEAPONS ) {
s1->weapon = 0;
}
weapon = &cg_weapons[s1->weapon];
@ -519,7 +519,7 @@ static void CG_Grapple( centity_t *cent ) {
const weaponInfo_t *weapon;
s1 = &cent->currentState;
if ( s1->weapon > WP_NUM_WEAPONS ) {
if ( s1->weapon >= WP_NUM_WEAPONS ) {
s1->weapon = 0;
}
weapon = &cg_weapons[s1->weapon];