Overview
| Comment: | Correct some mistakes in the level loading |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
8809d628a434aa123f68728be2c41dac |
| User & Date: | user on 2020-11-16 22:44:48.911 |
| Other Links: | manifest | tags |
Context
|
2020-11-17
| ||
| 00:51 | Add possibility to select levels. check-in: 5b7677692b user: user tags: trunk | |
|
2020-11-16
| ||
| 22:44 | Correct some mistakes in the level loading check-in: 8809d628a4 user: user tags: trunk | |
| 04:55 | Correct the license check-in: f14e1a7d44 user: user tags: trunk | |
Changes
Modified exec.c
from [47586b49e3]
to [ca6634bfb7].
| ︙ | |||
76 77 78 79 80 81 82 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | - + + |
Uint32 objalloc(Uint16 c) {
// Allocates a new object of the given class; links into the event list but not into the playfield.
// All fields are initialized by the class or to zero.
// Does not send any messages or otherwise notify anyone that it has been created.
// Returns VOIDLINK if object cannot be created.
Uint32 n;
Class*cl=classes[c];
|
| ︙ |
Modified main.c
from [d1369c2f61]
to [1983533b19].
| ︙ | |||
203 204 205 206 207 208 209 210 211 212 213 214 215 216 | 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | + + |
int i,n,x,y,z;
Uint16 lo=0;
Uint32 o;
Uint32 mru[2];
if(lvl<0 && level_index && -lvl<=level_nindex) {
lo=-lvl;
lvl=level_index[~lvl];
p=buf=read_lump(FIL_LEVEL,lvl,&sz,0);
end=buf+sz;
}
if(lvl<0) return "Invalid level ID";
if(!buf) return "Cannot find level";
free(level_title);
level_title=0;
annihilate();
generation_number=TY_MAXTYPE+1;
|
| ︙ |