Merge process_ev into model_ovni_event
This commit is contained in:
parent
06c250500c
commit
2be46393e1
@ -442,11 +442,13 @@ pre_flush(struct emu *emu)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
process_ev(struct emu *emu)
|
||||
int
|
||||
model_ovni_event(struct emu *emu)
|
||||
{
|
||||
if (emu->ev->m != 'O')
|
||||
if (emu->ev->m != 'O') {
|
||||
err("unexpected event model %c\n", emu->ev->m);
|
||||
return -1;
|
||||
}
|
||||
|
||||
switch (emu->ev->c) {
|
||||
case 'H':
|
||||
@ -470,14 +472,3 @@ process_ev(struct emu *emu)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
model_ovni_event(struct emu *emu)
|
||||
{
|
||||
if (emu->ev->m != 'O') {
|
||||
err("unexpected event model %c\n", emu->ev->m);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return process_ev(emu);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user