forked from mirrors/kolyah35-minecraft-pe-0.6.1
defined() would be better ig
This commit is contained in:
parent
845d721b1e
commit
fe73853a64
1 changed files with 4 additions and 4 deletions
|
|
@ -1106,9 +1106,9 @@ void Minecraft::releaseMouse()
|
|||
}
|
||||
|
||||
bool Minecraft::useTouchscreen() {
|
||||
#if TARGET_OS_IPHONE
|
||||
#if defined(TARGET_OS_IPHONE)
|
||||
return true;
|
||||
#elif RPI
|
||||
#elif defined(RPI)
|
||||
return false;
|
||||
#endif
|
||||
return options.getBooleanValue(OPTIONS_USE_TOUCHSCREEN) && !_supportsNonTouchscreen;
|
||||
|
|
@ -1149,8 +1149,8 @@ void Minecraft::init()
|
|||
int* grassPixels = textures->loadTexturePixels(grassId, "misc/foliagecolor.png");
|
||||
GrassColor::init(grassPixels);
|
||||
|
||||
bool tint = options.getBooleanValue(OPTIONS_FOLIAGE_TINT); // finally, toggleable foliage color
|
||||
FoliageColor::setUseTint(tint);
|
||||
bool tint = options.getBooleanValue(OPTIONS_FOLIAGE_TINT); // finally, toggleable foliage color
|
||||
FoliageColor::setUseTint(tint);
|
||||
GrassColor::setUseTint(tint);
|
||||
|
||||
// Platform specific initialization here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue