omg omg
This commit is contained in:
@@ -71,7 +71,7 @@ bool PlayerCursor::addPosition(unsigned int x, unsigned int y) {
|
||||
if (x > this->rows.at(y)) return false;
|
||||
|
||||
this->rows.at(y)++;
|
||||
if (x <= this->position.x) {
|
||||
if ((y == this->position.y) && (x <= this->position.x)) {
|
||||
this->position.x++;
|
||||
}
|
||||
return true;
|
||||
@@ -82,7 +82,7 @@ bool PlayerCursor::removePosition(unsigned int x, unsigned int y) {
|
||||
if (x >= this->rows.at(y)) return false;
|
||||
|
||||
this->rows.at(y)--;
|
||||
if (x < this->position.x) {
|
||||
if ((y == this->position.y) && (x < this->position.x)) {
|
||||
this->position.x--;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user