comparison vm.c @ 133:d09a81cf65ce src

determine correct PG and PTT numbers when seeking across PG boundaries
author mroi
date Mon, 24 Mar 2003 16:42:59 +0000
parents 69e1755625a1
children 5204d4e4cd3b
comparison
equal deleted inserted replaced
132:f22458f928b8 133:d09a81cf65ce
469 (vm->state).pgN = pg; 469 (vm->state).pgN = pg;
470 process_command(vm, play_PG(vm)); 470 process_command(vm, play_PG(vm));
471 return 1; 471 return 1;
472 } 472 }
473 473
474 int vm_jump_cell_block(vm_t *vm, int cell, int block) {
475 (vm->state).cellN = cell;
476 process_command(vm, play_Cell(vm));
477 (vm->state).blockN = block;
478 return 1;
479 }
480
474 int vm_jump_title_part(vm_t *vm, int title, int part) { 481 int vm_jump_title_part(vm_t *vm, int title, int part) {
475 int vtsN; 482 int vtsN;
476 483
477 vtsN = vm->vmgi->tt_srpt->title[title - 1].title_set_nr; 484 vtsN = vm->vmgi->tt_srpt->title[title - 1].title_set_nr;
478 485
479 if(!set_VTS_PTT(vm, vtsN, title, part)) 486 if(!set_VTS_PTT(vm, vtsN, title, part))
480 return 0; 487 return 0;
481 process_command(vm, play_PGC_PG(vm, (vm->state).pgN)); 488 process_command(vm, play_PGC_PG(vm, (vm->state).pgN));
482 vm->hop_channel++;
483 return 1; 489 return 1;
484 } 490 }
485 491
486 int vm_jump_top_pg(vm_t *vm) { 492 int vm_jump_top_pg(vm_t *vm) {
487 process_command(vm, play_PG(vm)); 493 process_command(vm, play_PG(vm));
1797 #endif 1803 #endif
1798 1804
1799 1805
1800 /* 1806 /*
1801 * $Log$ 1807 * $Log$
1808 * Revision 1.47 2003/03/24 16:42:59 mroi
1809 * determine correct PG and PTT numbers when seeking across PG boundaries
1810 *
1802 * Revision 1.46 2003/03/15 20:21:44 mroi 1811 * Revision 1.46 2003/03/15 20:21:44 mroi
1803 * - do not rely on 1:1 mappings between PTTs and PGs 1812 * - do not rely on 1:1 mappings between PTTs and PGs
1804 * - fix get_PGCN for cases where get_PGCIT returns NULL 1813 * - fix get_PGCN for cases where get_PGCIT returns NULL
1805 * 1814 *
1806 * Revision 1.45 2003/03/14 18:47:51 mroi 1815 * Revision 1.45 2003/03/14 18:47:51 mroi