- Fixed editor bug with sprite ids >= 128

- Fixed level 40 (was corrupted by editor bug)
- Fixed level 112 (was impossible to complete)
This commit is contained in:
Rob Pearce 2008-10-31 22:04:25 +00:00
parent 27990c3beb
commit 451549c44f
3 changed files with 9 additions and 6 deletions

View File

@ -47,7 +47,7 @@ exitdir 1
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,0,0,0,0,0,0,0,0,0,0,52,52,52,52,52,52,52,52,52,52,52,52,52,52, 52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,0,0,0,0,0,0,0,0,0,0,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
52,44,44,51,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,50,44,44,52, 52,44,44,51,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,50,44,44,52,
52,44,51,0,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,6,5,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,50,44,52, 52,44,51,0,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,6,5,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,50,44,52,
52,51,0,0,0,0,0,0,0,0,0,0,0,0,0,52,22,22,22,22,52,52,22,22,22,22,52,0,0,0,0,0,0,0,0,0,0,0,50,52, 52,51,0,0,0,0,0,0,0,0,0,0,0,0,0,52,20,20,20,52,52,52,52,20,20,20,52,0,0,0,0,0,0,0,0,0,0,0,50,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,52,52,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,52,52,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,52,
@ -57,9 +57,9 @@ exitdir 1
52,52,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,52,52,52,52,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,52,52, 52,52,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,52,52,52,52,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,52,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,55,0,0,0,0,0,54,0,0,0,0,0,0,52,52,0,0,0,0,0,0,55,0,0,0,0,0,54,0,0,0,0,52,
52,52,52,52,52,52,52,52,52,52,44,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52, 52,52,52,52,52,52,52,52,20,21,21,21,20,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,20,21,21,21,20,52,52,52,52,52,52,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52, 52,52,52,52,52,52,52,52,0,0,0,0,0,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,0,0,0,0,0,52,52,52,52,52,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,
52,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,52,52,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,52, 52,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,52,52,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,52,
@ -70,7 +70,7 @@ exitdir 1
52,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,52,52,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,52,52,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,
52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,30,0,0,0,0,52,52,0,0,0,0,30,0,0,0,0,0,0,0,0,0,0,0,0,52, 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,30,0,0,0,0,52,52,0,0,0,0,30,0,0,0,0,0,0,0,0,0,0,0,0,52,
52,49,0,0,0,0,0,0,0,0,0,0,0,0,0,52,22,22,22,22,52,52,22,22,22,22,52,0,0,0,0,0,0,0,0,0,0,0,48,52, 52,49,0,0,0,0,0,0,0,0,0,0,0,0,0,52,20,20,20,20,52,52,20,20,20,20,52,0,0,0,0,0,0,0,0,0,0,0,48,52,
52,44,49,0,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,48,44,52, 52,44,49,0,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,48,44,52,
52,44,44,49,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,48,44,44,52, 52,44,44,49,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,48,44,44,52,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,0,0,0,0,0,0,0,0,0,0,52,52,52,52,52,52,52,52,52,52,52,52,52,52, 52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,0,0,0,0,0,0,0,0,0,0,52,52,52,52,52,52,52,52,52,52,52,52,52,52,

View File

@ -5,6 +5,7 @@ help
endhelp endhelp
monsters monsters
0 6 8 0 6 8
128 19 27
endmonsters endmonsters
exitdir 1 exitdir 1
56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56, 56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,

4
edit.c
View File

@ -914,7 +914,7 @@ int savelevel(int wnum, int lnum) {
fprintf(f, "monsters\n"); fprintf(f, "monsters\n");
for (s = sprite; s ; s = s->next) { for (s = sprite; s ; s = s->next) {
int mx,my; int mx,my;
char mid; int mid;
//mid = monstertochar(s->id); //mid = monstertochar(s->id);
mid = s->id; mid = s->id;
mx = (s->x - (TILEW/2)) / TILEW; mx = (s->x - (TILEW/2)) / TILEW;
@ -1072,6 +1072,8 @@ int isplacablesprite(int sid) {
case P_WINGRIGHT: case P_WINGRIGHT:
case P_WINGBOOTS: case P_WINGBOOTS:
case P_ACCORDION: case P_ACCORDION:
case P_GUN:
case P_ZAPPOWERUP:
return B_FALSE; return B_FALSE;
} }