- [CHG] Ara en Linux la configuració se guarda en " ~/.config/thepool/config.txt"
- [FIX] Solventada explosió en pantalla de gameover per un dangling pointer. Aplicades medides similars en catslife i ingame.
This commit is contained in:
@@ -17,12 +17,15 @@ namespace modules
|
||||
void init()
|
||||
{
|
||||
audio::playMusic("mus_gameover.ogg", 0);
|
||||
if (gat == nullptr) gat = actor::createFromTemplate("GAT-NEGRE");
|
||||
gat = actor::createFromTemplate("GAT-NEGRE");
|
||||
}
|
||||
|
||||
bool loop()
|
||||
{
|
||||
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK)) {
|
||||
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK))
|
||||
{
|
||||
if (gat) actor::remove(gat);
|
||||
gat = nullptr;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user