Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 96: | Rivi 96: | ||
if ( jw.obstype[ot].type != 'none' ) { | if ( jw.obstype[ot].type != 'none' ) { | ||
if ( jw.obstype[ot].type < -20 ) { | if ( jw.obstype[ot].type < -20 ) { | ||
jw.obstype[ot].cat = 0; | |||
} else if ( jw.obstype[ot].type < -10 ) { | |||
jw.obstype[ot].cat = 1; | jw.obstype[ot].cat = 1; | ||
} else if ( jw.obstype[ot].type < | } else if ( jw.obstype[ot].type < 10 ) { | ||
jw.obstype[ot].cat = 2; | jw.obstype[ot].cat = 2; | ||
} else if ( jw.obstype[ot].type < | } else if ( jw.obstype[ot].type < 20 ) { | ||
jw.obstype[ot].cat = 3; | jw.obstype[ot].cat = 3; | ||
} else | } else { | ||
jw.obstype[ot].cat = 4; | jw.obstype[ot].cat = 4; | ||
} | } | ||
} | } | ||


