Differences From Artifact [7224dafdb1]:
- File edit.c — part of check-in [1b9b475745] at 2021-05-01 01:10:08 on branch trunk — Allow number pad keys to be used in the class/image selection menu in the level editor. (user: user, size: 46029) [annotate] [blame] [check-ins using]
To Artifact [33f0991a96]:
- File edit.c — part of check-in [aaae541d8a] at 2021-05-02 20:13:24 on branch trunk — When adding a new object to the MRU list, ensure that it is selected as the current MRU. (user: user, size: 46041) [annotate] [blame] [check-ins using]
| ︙ | |||
363 364 365 366 367 368 369 370 371 372 373 374 375 376 | 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 | + |
if(!cl) return;
for(i=0;i<MRUCOUNT-1;i++) if(mru[i].class==cl && mru[i].img==img) break;
memmove(mru+1,mru,i*sizeof(MRU));
mru[0].class=cl;
mru[0].img=img;
mru[0].dir=0;
mru[0].misc1=mru[0].misc2=mru[0].misc3=NVALUE(0);
curmru=0;
}
static void class_image_select(void) {
SDL_Event ev;
SDL_Rect r;
int clscroll=0;
int imgscroll=0;
|
| ︙ |