- [FIX] Si només quedaba el heroi al canviar d'habitació, petava

- [FIX] Algunes capçaleres mal
- Lagueirto en proves
This commit is contained in:
2024-09-30 11:16:26 +02:00
parent a3edcb2684
commit 45bc160ef4
6 changed files with 11 additions and 5 deletions

1
.gitignore vendored
View File

@@ -2,5 +2,6 @@
*.dll *.dll
.vscode/* .vscode/*
*.dSYM/* *.dSYM/*
build/*
thepool thepool
thepool_debug thepool_debug

View File

@@ -1,5 +1,5 @@
width: 2 width: 3
height: 2 height: 3
color: CYAN color: CYAN
floor-texture: 0 floor-texture: 0
wall-texture: 0 wall-texture: 0

5
lagueirtofile Normal file
View File

@@ -0,0 +1,5 @@
libs = -lSDL2 -lSDL2_mixer
cppflags = -D DEBUG -g
executable = thepool_debug
sourcepath = source
buildpath = build

View File

@@ -418,7 +418,7 @@ namespace actor
void setDirty(actor_t *act, const bool force) void setDirty(actor_t *act, const bool force)
{ {
if (!act->prev && !act->next) if (!act->prev && !act->next && !(act==first))
{ {
act->next = first; act->next = first;
if (first) first->prev = act; if (first) first->prev = act;

View File

@@ -1,5 +1,5 @@
#include "jdraw.h" #include "jdraw.h"
#include "SDL2/SDL.h" #include <SDL2/SDL.h>
#include "gif.c" #include "gif.c"
#include "jfile.h" #include "jfile.h"
#include <vector> #include <vector>

View File

@@ -4,7 +4,7 @@
#include "jinput.h" #include "jinput.h"
#include "editor.h" #include "editor.h"
#include "console.h" #include "console.h"
#include "string.h" #include <string.h>
#include "config.h" #include "config.h"
#include <SDL2/SDL.h> #include <SDL2/SDL.h>