mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
ADD: fire (and reduce options writings)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 111 KiB |
@@ -168,9 +168,7 @@ void Options::set(OptionId key, const std::string& value) {
|
||||
|
||||
if (option) {
|
||||
option->set(value);
|
||||
|
||||
notifyOptionUpdate(key, value);
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,9 +177,7 @@ void Options::set(OptionId key, float value) {
|
||||
|
||||
if (option) {
|
||||
option->set(value);
|
||||
|
||||
notifyOptionUpdate(key, value);
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,9 +186,7 @@ void Options::set(OptionId key, int value) {
|
||||
|
||||
if (option) {
|
||||
option->set(value);
|
||||
|
||||
notifyOptionUpdate(key, value);
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,9 +195,7 @@ void Options::toggle(OptionId key) {
|
||||
|
||||
if (option) {
|
||||
option->toggle();
|
||||
|
||||
notifyOptionUpdate(key, option->get());
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -217,9 +217,6 @@ void OptionsScreen::generateOptionScreens() {
|
||||
|
||||
// // Graphics Pane
|
||||
optionPanes[3]->addOptionItem(OPTIONS_FANCY_GRAPHICS, minecraft)
|
||||
// .addOptionItem(&Options::Option::VIEW_BOBBING, minecraft)
|
||||
// .addOptionItem(&Options::Option::AMBIENT_OCCLUSION, minecraft)
|
||||
// .addOptionItem(&Options::Option::ANAGLYPH, minecraft)
|
||||
.addOptionItem(OPTIONS_LIMIT_FRAMERATE, minecraft)
|
||||
.addOptionItem(OPTIONS_VSYNC, minecraft)
|
||||
.addOptionItem(OPTIONS_RENDER_DEBUG, minecraft)
|
||||
|
||||
@@ -9,10 +9,10 @@ static Random _rand;
|
||||
|
||||
namespace Mth
|
||||
{
|
||||
const float PI = 3.1415926535897932384626433832795028841971f; // exactly!
|
||||
const float TWO_PI = 2.0f * PI; // exactly!
|
||||
const float DEGRAD = PI / 180.0f;
|
||||
const float RADDEG = 180.0f / PI;
|
||||
constexpr float PI = 3.1415926535897932384626433832795028841971f; // exactly!
|
||||
constexpr float TWO_PI = 2.0f * PI; // exactly!
|
||||
constexpr float DEGRAD = PI / 180.0f;
|
||||
constexpr float RADDEG = 180.0f / PI;
|
||||
|
||||
static float _sin[65536];
|
||||
static const float _sinScale = 65536.0f / (2.0f * PI);
|
||||
|
||||
Reference in New Issue
Block a user