Commit 592fa140 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor EBN issues and typos

parent a76579ee
......@@ -172,7 +172,7 @@
i18n("Rumpelstiltskin");
i18n("The main trick for this level is luring the enemies so that you can get around them, or in one case, so that you can walk over an enemy to collect a piece of gold. The luring is not so hard, but the distances you have to lure them are long. Maneuvering the enemy so that you can walk over him to get the piece of gold has timing that is a bit tight, but not too bad.\n"
"\n"
"When you reach the section above your starting point, there are two ways out: one is a false brick under the short ladder. But if you dig the other square and drop down, there is a a path through a false floor that avoids retracing all the early part of the maze.");
"When you reach the section above your starting point, there are two ways out: one is a false brick under the short ladder. But if you dig the other square and drop down, there is a path through a false floor that avoids retracing all the early part of the maze.");
// L036
// R MHM M MHM MHM MHM M MHM MMHMHMHMHMHMHMHMHMHMHMHMHMHMHHHHH HHHHH HHH HHHHHHHEHHHHMMHMHMHMHMHMHMHMHMHMHMHMHMHMH MHMHMHMHMHMHHHMHMHMHMHMHHHMMNMHMHMHMHMHMHMHMHMHMHMHMHMHHHHHHHH HHHM HHHHHNMHHHNHHHMM MHMHMHMHMHMHMHMHFHMHMTMHMHHMHMHMHMHHHMHHHMHMHMHHHFHHHMMHMHMHMHMHMHMHMHMHMHMHMHMHMHH HHHHHM HHMHHNM HHHHHHMHH MMHMHMHFHMHMHMHMHMHMHMHMHMHMHNHHMHHHFHHHMHMHMHHHMHM MHHHMMHMHMH TMHMHMHMHMHMHMHMHMHMHHHHMHHHMHHHMHHHHHHHM HHHHHHMMHMHMHMHMHMHMHMHMHMHMHMHMHM HMHMHHHMHHHM HHMHMHMHHHM MHMMHMHMHMHMHMHMHMHMHMHMHMHMHMHHNHHHHHMHHHHHHHMHHNHHHHHHH MMHMHMZMHMZMHMZMHMZMZMHMZMHMN
i18n("Thror");
......
......@@ -308,7 +308,7 @@ KGrLGDialog::KGrLGDialog (QFile * savedGames,
s = gameText.readLine(); // Read in one saved game.
pr = s.left (s.indexOf (QStringLiteral(" "), 0,
Qt::CaseInsensitive)); // Get the game prefix.
for (i = 0; i < imax; i++) { // Get the game name.
for (i = 0; i < imax; ++i) { // Get the game name.
if (gameList.at (i)->prefix == pr) {
s = s.insert (0,
gameList.at (i)->name.leftJustified (20, QLatin1Char(' '), true) + QLatin1Char(' '));
......
......@@ -95,8 +95,8 @@ bool KGrEditor::createLevel (int pGameIndex)
// Clear the playfield.
levelData.layout.resize (levelData.width * levelData.height);
for (i = 1; i <= levelData.width; i++) {
for (j = 1; j <= levelData.height; j++) {
for (i = 1; i <= levelData.width; ++i) {
for (j = 1; j <= levelData.height; ++j) {
insertEditObj (i, j, FREE);
}
}
......@@ -177,8 +177,8 @@ void KGrEditor::loadEditLevel (int lev)
char obj;
// Load the level.
for (i = 1; i <= levelData.width; i++) {
for (j = 1; j <= levelData.height; j++) {
for (i = 1; i <= levelData.width; ++i) {
for (j = 1; j <= levelData.height; ++j) {
obj = d.layout [(j-1) * d.width + (i-1)];
insertEditObj (i, j, obj);
}
......@@ -274,8 +274,8 @@ bool KGrEditor::saveLevelFile()
}
// Save the level - row by row.
for (j = 1; j <= levelData.height; j++) {
for (i = 1; i <= levelData.width; i++) {
for (j = 1; j <= levelData.height; ++j) {
for (i = 1; i <= levelData.width; ++i) {
levelFile.putChar (editableCell (i, j));
}
}
......@@ -286,7 +286,7 @@ bool KGrEditor::saveLevelFile()
QByteArray levelNameC = levelName.toUtf8();
int len1 = levelNameC.length();
if (len1 > 0) {
for (i = 0; i < len1; i++)
for (i = 0; i < len1; ++i)
levelFile.putChar (levelNameC[i]);
levelFile.putChar ('\n'); // Add a newline.
}
......@@ -299,7 +299,7 @@ bool KGrEditor::saveLevelFile()
if (len2 > 0) {
if (len1 <= 0)
levelFile.putChar ('\n'); // Leave blank line for name.
for (i = 0; i < len2; i++) {
for (i = 0; i < len2; ++i) {
ch = levelHintC[i];
levelFile.putChar (ch); // Copy the character.
}
......@@ -806,7 +806,7 @@ bool KGrEditor::saveGameData (Owner o)
.arg (gData->name); // QString
lineC = line.toUtf8();
len = lineC.length();
for (i = 0; i < len; i++) {
for (i = 0; i < len; ++i) {
c.putChar (lineC.at (i));
}
......@@ -814,7 +814,7 @@ bool KGrEditor::saveGameData (Owner o)
if (len > 0) {
QByteArray aboutC = gData->about;
len = aboutC.length(); // Might be longer now.
for (i = 0; i < len; i++) {
for (i = 0; i < len; ++i) {
ch = aboutC[i];
if (ch != '\n') {
c.putChar (ch); // Copy the character.
......
......@@ -64,7 +64,7 @@ public:
*
* @param pView The view or widget used as a parent for error messages.
*/
KGrGameIO (QWidget * pView);
explicit KGrGameIO (QWidget * pView);
/**
* Find and read data for games, into a list of KGrGameData structures.
......
......@@ -62,7 +62,7 @@ class KGrRenderer : public QObject
{
Q_OBJECT
public:
KGrRenderer (KGrScene * scene);
explicit KGrRenderer (KGrScene * scene);
~KGrRenderer() override;
/*
......@@ -93,7 +93,7 @@ public:
*
* @param level The current level in a KGoldrunner game.
* @param currentBackground The pre-existing background that is to be
* replaced, or zero if theres'no background yet.
* replaced, or zero if there's no background yet.
*/
KGameRenderedItem * getBackground (const int level,
KGameRenderedItem * currentBackground);
......
......@@ -31,7 +31,7 @@ class KGrRuleBook : public QObject
{
Q_OBJECT
public:
KGrRuleBook (QObject * parent);
explicit KGrRuleBook (QObject * parent);
~KGrRuleBook() override;
bool variableTiming() const { return mVariableTiming; }
......@@ -93,7 +93,7 @@ class KGrTraditionalRules : public KGrRuleBook
{
Q_OBJECT
public:
KGrTraditionalRules (QObject * parent);
explicit KGrTraditionalRules (QObject * parent);
~KGrTraditionalRules();
Direction findBestWay (const int eI, const int eJ,
......@@ -118,7 +118,7 @@ class KGrKGoldrunnerRules : public KGrRuleBook
{
Q_OBJECT
public:
KGrKGoldrunnerRules (QObject * parent);
explicit KGrKGoldrunnerRules (QObject * parent);
~KGrKGoldrunnerRules();
Direction findBestWay (const int eI, const int eJ,
......@@ -138,7 +138,7 @@ class KGrScavengerRules : public KGrRuleBook
{
Q_OBJECT
public:
KGrScavengerRules (QObject * parent);
explicit KGrScavengerRules (QObject * parent);
~KGrScavengerRules();
Direction findBestWay (const int eI, const int eJ,
......
......@@ -76,7 +76,7 @@ class KGrScene : public QGraphicsScene
{
Q_OBJECT
public:
KGrScene (KGrView * view);
explicit KGrScene (KGrView * view);
~KGrScene ();
/**
......
......@@ -360,7 +360,7 @@ void KGrSLDialog::slSetGames (int cIndex)
for (char sortItem1 : qAsConst(sortOrder1)) {
for (char sortItem2 : qAsConst(sortOrder2)) {
for (i = 0; i < imax; i++) {
for (i = 0; i < imax; ++i) {
if ((myGameList.at (i)->skill == sortItem1) &&
(myGameList.at (i)->rules == sortItem2)) {
QStringList data;
......
......@@ -28,8 +28,8 @@ class KGrView : public QGraphicsView
{
Q_OBJECT
public:
KGrView (QWidget * parent);
~KGrView ();
explicit KGrView (QWidget * parent);
~KGrView ();
/*
* Get a pointer to the game scene.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment