mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-07 08:17:14 +00:00
implement DebugArtToolsOn, fix strings and includes
This commit is contained in:
parent
d230a1e4e4
commit
e444bef081
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
|
||||
#include "../Minecraft.World/Platform/stdafx.h"
|
||||
|
||||
#include "../Minecraft.World/Recipes/Recipy.h"
|
||||
|
|
@ -4929,6 +4929,14 @@ void CMinecraftApp::UpsellReturnedCallback(void *pParam, eUpsellType type, eUpse
|
|||
TelemetryManager->RecordUpsellResponded(ProfileManager.GetPrimaryPad(), eSen_UpsellID_Full_Version_Of_Game, app.m_dwOfferID, senResponse);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG_MENUS_ENABLED
|
||||
bool CMinecraftApp::DebugArtToolsOn() {
|
||||
return DebugSettingsOn() &&
|
||||
(GetGameSettingsDebugMask(ProfileManager.GetPrimaryPad()) &
|
||||
(1L << eDebugSetting_ArtTools)) != 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
void CMinecraftApp::SetDebugSequence(const char *pchSeq)
|
||||
{
|
||||
InputManager.SetDebugSequence(pchSeq,&CMinecraftApp::DebugInputCallback,this);
|
||||
|
|
|
|||
|
|
@ -306,9 +306,11 @@ public:
|
|||
#endif
|
||||
|
||||
#ifdef _DEBUG_MENUS_ENABLED
|
||||
bool DebugSettingsOn() { return m_bDebugOptions;}
|
||||
bool DebugSettingsOn() { return m_bDebugOptions; }
|
||||
bool DebugArtToolsOn();
|
||||
#else
|
||||
bool DebugSettingsOn() { return false;}
|
||||
bool DebugSettingsOn() { return false; }
|
||||
bool DebugArtToolsOn() { return false; }
|
||||
#endif
|
||||
void SetDebugSequence(const char *pchSeq);
|
||||
static int DebugInputCallback(void *pParam);
|
||||
|
|
|
|||
|
|
@ -16,12 +16,11 @@ StoneMonsterTile::StoneMonsterTile(int id) : Tile(id, Material::clay) {
|
|||
}
|
||||
|
||||
Icon* StoneMonsterTile::getTexture(int face, int data) {
|
||||
// 4jcraft: removed in TU19 merge for now
|
||||
// #ifndef _CONTENT_PACKAGE
|
||||
// if (app.DebugArtToolsOn()) {
|
||||
// return Tile::fire->getTexture(face, 0);
|
||||
// }
|
||||
// #endif
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
if (app.DebugArtToolsOn()) {
|
||||
return Tile::fire->getTexture(face, 0);
|
||||
}
|
||||
#endif
|
||||
if (data == HOST_COBBLE) {
|
||||
return Tile::cobblestone->getTexture(face);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
#include "../../Minecraft.Client/Player/LocalPlayer.h"
|
||||
#include "../../Minecraft.Client/Player/ServerPlayer.h"
|
||||
#include "../../Minecraft.Client/Network/PlayerConnection.h"
|
||||
#include "../Minecraft.World/ChatPacket.h"
|
||||
#include "../Network/ChatPacket.h"
|
||||
#include "../Util/SoundTypes.h"
|
||||
|
||||
BucketItem::BucketItem(int id, int content) : Item(id) {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ project('4jcraft-chucklegrounds', ['cpp', 'c'],
|
|||
'cpp_std=c++23',
|
||||
'warning_level=0',
|
||||
'buildtype=debug', # for now
|
||||
'unity=off', # merge source files per target
|
||||
# 'unity_size=8', # TODO: mess around with this
|
||||
'unity=on', # merge source files per target
|
||||
'unity_size=8', # TODO: mess around with this
|
||||
'b_pch=true', # precompiled headers
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue