refactor: extract loadWeaponM2() to deduplicate weapon model loading

Extract shared M2+skin loading logic into Application::loadWeaponM2(),
replacing duplicate 15-line blocks in loadEquippedWeapons() and
tryAttachCreatureVirtualWeapons(). Future weapon loading changes only
need to update one place.
This commit is contained in:
Kelsi 2026-03-25 14:17:19 -07:00
parent 43caf7b5e6
commit 56f8f5c592
2 changed files with 24 additions and 45 deletions

View file

@ -73,6 +73,7 @@ public:
// Weapon loading (called at spawn and on equipment change)
void loadEquippedWeapons();
bool loadWeaponM2(const std::string& m2Path, pipeline::M2Model& outModel);
// Logout to login screen
void logoutToLogin();