fix bad std::string replacements

This commit is contained in:
Tropical 2026-03-21 18:52:06 -05:00
parent 8df2c2bb47
commit 401a19ad67
4 changed files with 8 additions and 8 deletions

View file

@ -758,19 +758,19 @@ int PotionBrewing::valueOf(int brew, int p1, int p2, int p3, int p4, int p5) {
}
std::wstring PotionBrewing::toString(int brew) {
std::wstring std::string;
std::wstring string;
int bit = NUM_BITS - 1;
while (bit >= 0) {
if ((brew & (1 << bit)) != 0) {
std::string.append(L"O");
string.append(L"O");
} else {
std::string.append(L"x");
string.append(L"x");
}
bit--;
}
return std::string;
return string;
}
// void main(String[] args)

View file

@ -173,8 +173,8 @@ public:
return (ListTag<Tag>*)tags[name];
}
bool getBoolean(const std::wstring& std::string) {
return getByte(std::string) != 0;
bool getBoolean(const std::wstring& string) {
return getByte(string) != 0;
}
void remove(const std::wstring& name) {

View file

@ -1604,7 +1604,7 @@ void Level::playStreamingMusic(const std::wstring& name, int x, int y, int z) {
}
void Level::playMusic(double x, double y, double z,
const std::wstring& std::string, float volume) {}
const std::wstring& string, float volume) {}
// 4J removed -
/*

View file

@ -341,7 +341,7 @@ public:
void playStreamingMusic(const std::wstring& name, int x, int y, int z);
void playMusic(double x, double y, double z,
const std::wstring& std::string, float volume);
const std::wstring& string, float volume);
// 4J removed - void addParticle(const std::wstring& id, double x, double y,
// double z, double xd, double yd, double zd);
void addParticle(ePARTICLE_TYPE id, double x, double y, double z, double xd,