Differences From Artifact [fec4beb6eb]:
- File main.c — part of check-in [1939e893b0] at 2020-11-22 02:05:24 on branch trunk — Fix the level conversion/loading by changing the MRU logic slightly. (user: user, size: 29710) [annotate] [blame] [check-ins using]
To Artifact [64955f8adb]:
- File main.c — part of check-in [daf44d7fbb] at 2020-11-26 01:41:03 on branch trunk — Implement objtrash() and generation number increasing; move initialization to a separate subroutine (user: user, size: 29737) [annotate] [blame] [check-ins using]
︙ | |||
212 213 214 215 216 217 218 219 220 221 222 223 224 225 | 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | + | } 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; generation_number_inc=0; level_version=p[0]|(p[1]<<8); level_code=p[2]|(p[3]<<8); p+=4; pfwidth=(*p++&63)+1; pfheight=(*p++&63)+1; while(*p && p<end) p++; // skip text for now p++; // skip null terminator |
︙ |