RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.98
diff -u -r1.98 simon.cpp
|
|
|
3659 | 3659 | vsp++; |
3660 | 3660 | |
3661 | 3661 | vsp->unk6 = b; |
3662 | | vsp->unk5 = 0; |
| 3662 | vsp->priority = 0; |
3663 | 3663 | vsp->unk4 = 0; |
3664 | 3664 | |
3665 | 3665 | vsp->y = d; |
RCS file: /cvsroot/scummvm/scummvm/simon/simon.h,v
retrieving revision 1.23
diff -u -r1.23 simon.h
|
|
|
76 | 76 | uint16 image; |
77 | 77 | uint16 base_color; |
78 | 78 | uint16 x, y; /* actually signed numbers */ |
79 | | uint16 unk4, unk5, unk6, unk7; |
| 79 | uint16 unk4; |
| 80 | uint16 priority; |
| 81 | uint16 unk6, unk7; |
80 | 82 | }; |
81 | 83 | |
82 | 84 | struct VgaSleepStruct { |
RCS file: /cvsroot/scummvm/scummvm/simon/vga.cpp,v
retrieving revision 1.14
diff -u -r1.14 vga.cpp
|
|
|
311 | 311 | |
312 | 312 | vsp->base_color = e; |
313 | 313 | vsp->unk6 = a; |
314 | | vsp->unk5 = 0; |
| 314 | vsp->priority = 0; |
315 | 315 | vsp->unk4 = 0; |
316 | 316 | vsp->image = 0; |
317 | 317 | vsp->x = c; |
… |
… |
|
1178 | 1178 | } |
1179 | 1179 | |
1180 | 1180 | memcpy(&bak, vsp, sizeof(bak)); |
1181 | | bak.unk5 = pri; |
| 1181 | bak.priority = pri; |
1182 | 1182 | bak.unk6 |= 0x8000; |
1183 | 1183 | |
1184 | 1184 | vus2 = vsp; |
1185 | 1185 | |
1186 | | if (vsp != _vga_sprites && pri < vsp[-1].unk5) { |
| 1186 | if (vsp != _vga_sprites && pri < vsp[-1].priority) { |
1187 | 1187 | do { |
1188 | 1188 | vsp--; |
1189 | | } while (vsp != _vga_sprites && pri < vsp[-1].unk5); |
| 1189 | } while (vsp != _vga_sprites && pri < vsp[-1].priority); |
1190 | 1190 | do { |
1191 | 1191 | memcpy(vus2, vus2 - 1, sizeof(VgaSprite)); |
1192 | 1192 | } while (--vus2 != vsp); |
1193 | 1193 | memcpy(vus2, &bak, sizeof(VgaSprite)); |
1194 | | } else if (vsp[1].id != 0 && pri >= vsp[1].unk5) { |
| 1194 | } else if (vsp[1].id != 0 && pri >= vsp[1].priority) { |
1195 | 1195 | do { |
1196 | 1196 | vsp++; |
1197 | | } while (vsp[1].id != 0 && pri >= vsp[1].unk5); |
| 1197 | } while (vsp[1].id != 0 && pri >= vsp[1].priority); |
1198 | 1198 | do { |
1199 | 1199 | memcpy(vus2, vus2 + 1, sizeof(VgaSprite)); |
1200 | 1200 | } while (++vus2 != vsp); |
1201 | 1201 | memcpy(vus2, &bak, sizeof(VgaSprite)); |
1202 | 1202 | } else { |
1203 | | vsp->unk5 = pri; |
| 1203 | vsp->priority = pri; |
1204 | 1204 | } |
1205 | 1205 | _vga_sprite_changed++; |
1206 | 1206 | } |