Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Revert "Test_2"
Browse files Browse the repository at this point in the history
This reverts commit 41151ce.
  • Loading branch information
TYHH10 authored and TYHH10 committed Jul 9, 2024
1 parent 0eb1ec3 commit 9740bb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/mod/attr/custom_attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7445,7 +7445,7 @@ namespace Mod::Attr::Custom_Attributes
bool IsCustomViewmodelAllowed(CTFPlayer *player) {
if (players_viewmodel_disallowed[player->entindex()]) {
if (!players_viewmodel_informed_about_disallowed[player->entindex()]) {
PrintToChat("Custom hand models disabled. Type !defaulthands to enable\n", player);
PrintToChat("自定义手部模型已禁用. 输入!defaulthands来启用\n", player);
players_viewmodel_informed_about_disallowed[player->entindex()] = true;
}
return false;
Expand Down Expand Up @@ -8356,7 +8356,7 @@ namespace Mod::Attr::Custom_Attributes
if (item_def != nullptr)
format_str.insert(0, CFmtStr("\n%s:\n\n", GetItemNameForDisplay(item_def)));
else
format_str.insert(0, "\nCharacter Attributes:\n\n");
format_str.insert(0, "\n人物属性:\n\n");

added_item_name = true;
}
Expand Down Expand Up @@ -9958,4 +9958,4 @@ namespace Mod::Attr::Custom_Attributes
s_Mod.Toggle(static_cast<ConVar *>(pConVar)->GetBool());
});

}
}
4 changes: 2 additions & 2 deletions src/mod/item/item_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class ItemListEntry_Classname : public ItemListEntry

virtual const char *GetInfo() const override
{
static char buf[64];
static char buf[2048];
if (strnicmp(m_strClassname.c_str(), "tf_weapon_", strlen("tf_weapon_")) == 0) {
snprintf(buf, sizeof(buf), "Weapon type: %s", m_strClassname.c_str() + strlen("tf_weapon_"));
}
Expand Down Expand Up @@ -253,7 +253,7 @@ class ItemListEntry_ItemSlot : public ItemListEntry

virtual const char *GetInfo() const override
{
static char buf[64];
static char buf[2048];
if (m_iSlot >= 0) {
snprintf(buf, sizeof(buf), "Weapon in slot: %s", g_szLoadoutStrings[m_iSlot]);
}
Expand Down

0 comments on commit 9740bb0

Please sign in to comment.