mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix (unused) watertype checks in PM_WaterMove
This commit is contained in:
parent
57a463dd5d
commit
49ab0cc05e
1 changed files with 2 additions and 2 deletions
|
@ -483,9 +483,9 @@ static void PM_WaterMove( void ) {
|
||||||
// jump = head for surface
|
// jump = head for surface
|
||||||
if ( pm->cmd.upmove >= 10 ) {
|
if ( pm->cmd.upmove >= 10 ) {
|
||||||
if (pm->ps->velocity[2] > -300) {
|
if (pm->ps->velocity[2] > -300) {
|
||||||
if ( pm->watertype == CONTENTS_WATER ) {
|
if ( pm->watertype & CONTENTS_WATER ) {
|
||||||
pm->ps->velocity[2] = 100;
|
pm->ps->velocity[2] = 100;
|
||||||
} else if (pm->watertype == CONTENTS_SLIME) {
|
} else if ( pm->watertype & CONTENTS_SLIME ) {
|
||||||
pm->ps->velocity[2] = 80;
|
pm->ps->velocity[2] = 80;
|
||||||
} else {
|
} else {
|
||||||
pm->ps->velocity[2] = 50;
|
pm->ps->velocity[2] = 50;
|
||||||
|
|
Loading…
Reference in a new issue