fixed message while changing levels
This commit is contained in:
parent
9fb3c83b67
commit
5111fec1fa
|
@ -131,7 +131,7 @@ impl Game {
|
|||
let (next_level, x, y) = self.next_start();
|
||||
player_level = next_level;
|
||||
self.messages
|
||||
.insert(0, format!("you climb down to level {}.", next_level));
|
||||
.insert(0, format!("you climb down to level {}.", next_level + 1));
|
||||
self.get_mutable_player()
|
||||
.get_position()
|
||||
.set(next_level, x, y);
|
||||
|
@ -141,7 +141,7 @@ impl Game {
|
|||
let (next_level, x, y) = self.prev_end();
|
||||
player_level = next_level;
|
||||
self.messages
|
||||
.insert(0, format!("you climb up to level {}.", next_level));
|
||||
.insert(0, format!("you climb up to level {}.", next_level + 1));
|
||||
self.get_mutable_player()
|
||||
.get_position()
|
||||
.set(next_level, x, y);
|
||||
|
|
Loading…
Reference in New Issue