Browse Source

Fix GetHullBounds()

Same as in 8d4515be42
halloween
Night Owl 8 years ago
parent
commit
13a691bdd8
  1. 12
      cl_dll/cdll_int.cpp
  2. 12
      dlls/client.cpp

12
cl_dll/cdll_int.cpp

@ -76,18 +76,18 @@ int DLLEXPORT HUD_GetHullBounds( int hullnumber, float *mins, float *maxs )
switch( hullnumber ) switch( hullnumber )
{ {
case 0: // Normal player case 0: // Normal player
mins = Vector( -16, -16, -36 ); Vector( -16, -16, -36 ).CopyToArray(mins);
maxs = Vector( 16, 16, 36 ); Vector( 16, 16, 36 ).CopyToArray(maxs);
iret = 1; iret = 1;
break; break;
case 1: // Crouched player case 1: // Crouched player
mins = Vector( -16, -16, -18 ); Vector( -16, -16, -18 ).CopyToArray(mins);
maxs = Vector( 16, 16, 18 ); Vector( 16, 16, 18 ).CopyToArray(maxs);
iret = 1; iret = 1;
break; break;
case 2: // Point based hull case 2: // Point based hull
mins = Vector( 0, 0, 0 ); Vector( 0, 0, 0 ).CopyToArray(mins);
maxs = Vector( 0, 0, 0 ); Vector( 0, 0, 0 ).CopyToArray(maxs);
iret = 1; iret = 1;
break; break;
} }

12
dlls/client.cpp

@ -1853,18 +1853,18 @@ int GetHullBounds( int hullnumber, float *mins, float *maxs )
switch( hullnumber ) switch( hullnumber )
{ {
case 0: // Normal player case 0: // Normal player
mins = VEC_HULL_MIN; VEC_HULL_MIN.CopyToArray(mins);
maxs = VEC_HULL_MAX; VEC_HULL_MAX.CopyToArray(maxs);
iret = 1; iret = 1;
break; break;
case 1: // Crouched player case 1: // Crouched player
mins = VEC_DUCK_HULL_MIN; VEC_DUCK_HULL_MIN.CopyToArray(mins);
maxs = VEC_DUCK_HULL_MAX; VEC_DUCK_HULL_MAX.CopyToArray(maxs);
iret = 1; iret = 1;
break; break;
case 2: // Point based hull case 2: // Point based hull
mins = Vector( 0, 0, 0 ); Vector( 0, 0, 0 ).CopyToArray(mins);
maxs = Vector( 0, 0, 0 ); Vector( 0, 0, 0 ).CopyToArray(maxs);
iret = 1; iret = 1;
break; break;
} }

Loading…
Cancel
Save