From 94f7ee7481d6b753d52a0588236a32a16abb7fe9 Mon Sep 17 00:00:00 2001 From: tankefugl Date: Wed, 27 Jul 2005 23:03:10 +0000 Subject: [PATCH] Mantis 0001027: o Players can now walk up ladders without having to face up or jump on to them (and it now doesn't break fast alien movement up ramps) git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@307 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.1/source/pm_shared/pm_shared.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/releases/3.1/source/pm_shared/pm_shared.cpp b/releases/3.1/source/pm_shared/pm_shared.cpp index 495e0fd..a7a046f 100644 --- a/releases/3.1/source/pm_shared/pm_shared.cpp +++ b/releases/3.1/source/pm_shared/pm_shared.cpp @@ -3677,7 +3677,9 @@ void PM_CategorizePosition (void) point[2] = pmove->origin[2] - 2; // puzl: 1027 // Correctly detect that we are climbing - if (pmove->velocity[2] > (MAX_CLIMB_SPEED-10) ) // Shooting up really fast. Definitely not on ground. + if (((pmove->velocity[2] > (MAX_CLIMB_SPEED-10)) && (g_onladder[pmove->player_index] > 0)) + || (pmove->velocity[2] > 180)) + // Shooting up really fast. Definitely not on ground. { pmove->onground = -1; }