mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
fix bad std::string replacements
This commit is contained in:
parent
8df2c2bb47
commit
401a19ad67
|
|
@ -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 PotionBrewing::toString(int brew) {
|
||||||
std::wstring std::string;
|
std::wstring string;
|
||||||
|
|
||||||
int bit = NUM_BITS - 1;
|
int bit = NUM_BITS - 1;
|
||||||
while (bit >= 0) {
|
while (bit >= 0) {
|
||||||
if ((brew & (1 << bit)) != 0) {
|
if ((brew & (1 << bit)) != 0) {
|
||||||
std::string.append(L"O");
|
string.append(L"O");
|
||||||
} else {
|
} else {
|
||||||
std::string.append(L"x");
|
string.append(L"x");
|
||||||
}
|
}
|
||||||
bit--;
|
bit--;
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// void main(String[] args)
|
// void main(String[] args)
|
||||||
|
|
|
||||||
|
|
@ -173,8 +173,8 @@ public:
|
||||||
return (ListTag<Tag>*)tags[name];
|
return (ListTag<Tag>*)tags[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getBoolean(const std::wstring& std::string) {
|
bool getBoolean(const std::wstring& string) {
|
||||||
return getByte(std::string) != 0;
|
return getByte(string) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void remove(const std::wstring& name) {
|
void remove(const std::wstring& name) {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
void Level::playMusic(double x, double y, double z,
|
||||||
const std::wstring& std::string, float volume) {}
|
const std::wstring& string, float volume) {}
|
||||||
|
|
||||||
// 4J removed -
|
// 4J removed -
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -341,7 +341,7 @@ public:
|
||||||
|
|
||||||
void playStreamingMusic(const std::wstring& name, int x, int y, int z);
|
void playStreamingMusic(const std::wstring& name, int x, int y, int z);
|
||||||
void playMusic(double x, double y, double 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,
|
// 4J removed - void addParticle(const std::wstring& id, double x, double y,
|
||||||
// double z, double xd, double yd, double zd);
|
// double z, double xd, double yd, double zd);
|
||||||
void addParticle(ePARTICLE_TYPE id, double x, double y, double z, double xd,
|
void addParticle(ePARTICLE_TYPE id, double x, double y, double z, double xd,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue