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

Commit

Permalink
重新修改为默认的128
Browse files Browse the repository at this point in the history
  • Loading branch information
TYHH10 authored and TYHH10 committed Jul 10, 2024
1 parent 157abcd commit e0c4ad5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mod/mvm/extended_upgrades.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1182,12 +1182,12 @@ namespace Mod::MvM::Extended_Upgrades

if (enabled) {

char text[2048];
char text[128];
if (upgrade->increment != 0 && max_step < 100000 ) {
snprintf(text, 2048, "%s (%d/%d) $%d", upgrade->name.c_str(), cur_step, max_step, upgrade->cost);
snprintf(text, 128, "%s (%d/%d) $%d", upgrade->name.c_str(), cur_step, max_step, upgrade->cost);
}
else { // If increment == 0 or max steps less than 100000, pretend unlimited upgrades
snprintf(text, 2048, "%s $%d", upgrade->name.c_str(), upgrade->cost);
snprintf(text, 128, "%s $%d", upgrade->name.c_str(), upgrade->cost);
}

ItemDrawInfo info1(text,
Expand All @@ -1209,12 +1209,12 @@ namespace Mod::MvM::Extended_Upgrades
}
else if (upgrade->show_requirements && disabled_reason != "") {

char text[2048];
char text[128];
if (upgrade->increment != 0 && max_step < 100000) {
snprintf(text, 2048, "%s: %s (%d/%d) $%d", upgrade->name.c_str(), disabled_reason.c_str(), cur_step, max_step, upgrade->cost);
snprintf(text, 128, "%s: %s (%d/%d) $%d", upgrade->name.c_str(), disabled_reason.c_str(), cur_step, max_step, upgrade->cost);
}
else { // If increment == 0 or max steps less than 100000, pretend unlimited upgrades
snprintf(text, 2048, "%s: %s $%d", upgrade->name.c_str(), disabled_reason.c_str(), upgrade->cost);
snprintf(text, 128, "%s: %s $%d", upgrade->name.c_str(), disabled_reason.c_str(), upgrade->cost);
}

ItemDrawInfo info1(text, ITEMDRAW_DISABLED);
Expand Down

0 comments on commit e0c4ad5

Please sign in to comment.