- [FIX] Al tornar del minimapa sense seleccionar una habitació, ha de deixar-te en la que estaves.
- Canviat un poc el cap de l'heroi - Completant habitacions
This commit is contained in:
@@ -14,6 +14,7 @@ namespace modules
|
||||
vec2_t scroll {0,0};
|
||||
int drawn[64];
|
||||
int current_room;
|
||||
int previous_room;
|
||||
|
||||
struct miniroom_t
|
||||
{
|
||||
@@ -124,6 +125,7 @@ namespace modules
|
||||
for (int i=0;i<64;++i) drawn[i]=false;
|
||||
|
||||
current_room = room::getCurrent();
|
||||
previous_room = current_room;
|
||||
loadMiniRoom();
|
||||
room::load(42);
|
||||
|
||||
@@ -152,7 +154,11 @@ namespace modules
|
||||
|
||||
bool loop()
|
||||
{
|
||||
if (input::keyPressed(SDL_SCANCODE_ESCAPE) || input::keyPressed(SDL_SCANCODE_TAB)) return false;
|
||||
if (input::keyPressed(SDL_SCANCODE_ESCAPE) || input::keyPressed(SDL_SCANCODE_TAB))
|
||||
{
|
||||
room::load(previous_room);
|
||||
return false;
|
||||
}
|
||||
|
||||
//draw::stencil::enable();
|
||||
//draw::stencil::clear(255);
|
||||
|
||||
Reference in New Issue
Block a user