Differences From Artifact [d1369c2f61]:
- File main.c — part of check-in [9d982f0655] at 2020-10-20 23:21:48 on branch trunk — Add game.c file (not implemented much) (user: user, size: 29501) [annotate] [blame] [check-ins using]
To Artifact [1983533b19]:
- File main.c — part of check-in [8809d628a4] at 2020-11-16 22:44:48 on branch trunk — Correct some mistakes in the level loading (user: user, size: 29559) [annotate] [blame] [check-ins using]
︙ | |||
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; |
︙ |