From 710518f55a41ae4d5fb1a329c7daebdb30d259ac Mon Sep 17 00:00:00 2001 From: pierow Date: Sat, 4 May 2024 04:52:53 -0400 Subject: [PATCH] optimization to first person spec viewmodel loading --- main/source/cl_dll/view.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/source/cl_dll/view.cpp b/main/source/cl_dll/view.cpp index 5c959dd1..fea5b35c 100644 --- a/main/source/cl_dll/view.cpp +++ b/main/source/cl_dll/view.cpp @@ -1801,6 +1801,7 @@ int V_FindViewModelByWeaponModel(int weaponindex, int inUser3, int inUser4) if ( !SafeStrcmp( weaponModel->name, theCurrentPWeapon) ) { theViewModelIndex = gEngfuncs.pEventAPI->EV_FindModelIndex( theCurrentVWeapon ); + return theViewModelIndex; } i++; } @@ -1815,6 +1816,7 @@ int V_FindViewModelByWeaponModel(int weaponindex, int inUser3, int inUser4) if ( !SafeStrcmp( weaponModel->name, theCurrentPWeapon) ) { theViewModelIndex = gEngfuncs.pEventAPI->EV_FindModelIndex( theCurrentVWeapon ); + return theViewModelIndex; } i++; }