Fixed line endings style.
This commit is contained in:
parent
988f5ea933
commit
f542aea53d
20
src/main.cpp
20
src/main.cpp
@ -402,16 +402,16 @@ bool isEasterMode(int day, int month, int year, int before_after_days)
|
||||
{
|
||||
// Compute Easter date, based on wikipedia formula
|
||||
// http://en.wikipedia.org/wiki/Computus
|
||||
int a = year % 19;
|
||||
int b = year >> 2;
|
||||
int c = int(floor(b / 25)) + 1;
|
||||
int d = (c * 3) >> 2;
|
||||
int e = ((a * 19) - int(floor((c * 8 + 5) / 25)) + d + 15) % 30;
|
||||
e += (29578 - a - e * 32) >> 10;
|
||||
e -= ((year % 7) + b - d + e + 2) % 7;
|
||||
d = e >> 5;
|
||||
int easter_day = e - d * 31;
|
||||
int easter_month = d + 3;
|
||||
int a = year % 19;
|
||||
int b = year >> 2;
|
||||
int c = int(floor(b / 25)) + 1;
|
||||
int d = (c * 3) >> 2;
|
||||
int e = ((a * 19) - int(floor((c * 8 + 5) / 25)) + d + 15) % 30;
|
||||
e += (29578 - a - e * 32) >> 10;
|
||||
e -= ((year % 7) + b - d + e + 2) % 7;
|
||||
d = e >> 5;
|
||||
int easter_day = e - d * 31;
|
||||
int easter_month = d + 3;
|
||||
|
||||
int easter_start_day = easter_day - before_after_days;
|
||||
int easter_start_month = easter_month;
|
||||
|
@ -281,8 +281,8 @@ void BaseUserScreen::makeEntryFieldsVisible()
|
||||
getWidget<LabelWidget>("label_password")->setVisible(online);
|
||||
m_password_tb->setVisible(online);
|
||||
// Is user has no online name, make sure the user can enter one
|
||||
if (player->getLastOnlineName().empty())
|
||||
m_username_tb->setActivated();
|
||||
if (player->getLastOnlineName().empty())
|
||||
m_username_tb->setActivated();
|
||||
|
||||
}
|
||||
} // makeEntryFieldsVisible
|
||||
|
Loading…
Reference in New Issue
Block a user