mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 03:33:39 +00:00
more build fixes
This commit is contained in:
parent
195d82340a
commit
6c92bc0be8
|
|
@ -115,7 +115,7 @@ private:
|
|||
bool render);
|
||||
float tesselateAnvilPiece(AnvilTile* tt, int x, int y, int z, int part,
|
||||
float bottom, float width, float height,
|
||||
float length, bool std::rotate, bool render,
|
||||
float length, bool rotate, bool render,
|
||||
int data);
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -260,7 +260,8 @@ LevelData* DirectoryLevelStorage::prepareLevel() {
|
|||
} else
|
||||
#endif
|
||||
{
|
||||
getSaveFile()->setFilePointer(fileEntry, 0, NULL, FILE_BEGIN);
|
||||
getSaveFile()->setFilePointer(fileEntry, 0,
|
||||
SaveFileSeekOrigin::Begin);
|
||||
|
||||
#ifdef _LARGE_WORLDS
|
||||
byteArray data(fileEntry->getFileSize());
|
||||
|
|
|
|||
|
|
@ -288,6 +288,8 @@ bool Connection::writeTick() {
|
|||
Packet::writePacket(packet, bufferedDos);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
// 4J Added for debugging
|
||||
if (!socket->isLocal()) {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ void ContainerClickPacket::write(DataOutputStream* dos) // throws IOException
|
|||
dos->writeShort(slotNum);
|
||||
dos->writeByte((uint8_t)buttonNum);
|
||||
dos->writeShort(uid);
|
||||
dos->writeBoolean(quickKey);
|
||||
dos->writeBoolean(clickType);
|
||||
|
||||
writeItem(item, dos);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@ public:
|
|||
|
||||
// 4J-PB
|
||||
virtual bool
|
||||
prerequisite(int iRecipe)
|
||||
requiresRecipe(int iRecipe)
|
||||
= 0;
|
||||
virtual void
|
||||
prerequisite(INGREDIENTS_REQUIRED* pIngReq)
|
||||
collectRequirements(INGREDIENTS_REQUIRED* pIngReq)
|
||||
= 0;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -76,10 +76,6 @@ Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
|||
y(y),
|
||||
prerequisite(prerequisite) {}
|
||||
|
||||
int Achievement::getAchievementID() {
|
||||
return id - Achievements::ACHIEVEMENT_OFFSET;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Marks the achievement as locally awarded only.
|
||||
* @return self
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
class Language {
|
||||
private:
|
||||
static Language* singleton;
|
||||
std::unordered_map<std::wstring, std::wstring> translateTable;
|
||||
|
||||
public:
|
||||
Language();
|
||||
|
|
|
|||
Loading…
Reference in a new issue