From 47ad5965f5fc5c0b5190f2d4bd4ec704e337f61c Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 1 Dec 2004 22:24:11 +0000 Subject: * Bugfix to PTRC system that prevented it working with sv_pure on * Bugfix to first person animation on WP_BLASTER --- src/cgame/cg_weapons.c | 2 +- src/ui/ui_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c index 2fc0d7f7..02427daa 100644 --- a/src/cgame/cg_weapons.c +++ b/src/cgame/cg_weapons.c @@ -893,7 +893,7 @@ static int CG_MapTorsoToWeaponFrame( clientInfo_t *ci, int frame ) // stand attack 2 if( frame >= ci->animations[ TORSO_ATTACK2 ].firstFrame && frame < ci->animations[ TORSO_ATTACK2 ].firstFrame + 6 ) - return 1 + frame - ci->animations[ TORSO_ATTACK ].firstFrame; + return 1 + frame - ci->animations[ TORSO_ATTACK2 ].firstFrame; return 0; } diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index 4eca5373..4389074c 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -4216,7 +4216,7 @@ static void UI_RunMenuScript(char **args) { char command[ 32 ]; // load the file - len = trap_FS_FOpenFile( "ptrc.txt", &f, FS_READ ); + len = trap_FS_FOpenFile( "ptrc.cfg", &f, FS_READ ); if( len > 0 && ( len < sizeof( text ) - 1 ) ) { -- cgit