@@ -98,7 +98,7 @@ pub struct LocationConfig {
98
98
pub maparea_id : Option < u16 > ,
99
99
pub unknown_88 : Option < bool > ,
100
100
pub unknown_89 : Option < bool > ,
101
- #[ cfg( feature = "2008_3_shim" ) ]
101
+ #[ cfg( any ( feature = "2008_3_shim" , feature = "osrs" ) ) ]
102
102
pub unknown_90 : Option < bool > ,
103
103
pub is_members : Option < bool > ,
104
104
/// This location can have different appearances depending on a players varbits,
@@ -230,7 +230,6 @@ impl LocationConfig {
230
230
231
231
loop {
232
232
let opcode = buffer. try_get_u8 ( ) ?;
233
-
234
233
let read: Result < ( ) , ReadError > = try {
235
234
match opcode {
236
235
0 => {
@@ -314,7 +313,7 @@ impl LocationConfig {
314
313
82 => loc. maparea_id = Some ( buffer. try_get_u16 ( ) ?) ,
315
314
88 => loc. unknown_88 = Some ( false ) ,
316
315
89 => loc. unknown_89 = Some ( false ) ,
317
- #[ cfg( feature = "2008_3_shim" ) ]
316
+ #[ cfg( any ( feature = "2008_3_shim" , feature = "osrs" ) ) ]
318
317
90 => loc. unknown_90 = Some ( true ) ,
319
318
91 => loc. is_members = Some ( true ) ,
320
319
92 => loc. morphs_2 = Some ( ExtendedLocationMorphTable :: deserialize ( & mut buffer) ?) ,
@@ -704,7 +703,7 @@ pub mod location_config_fields {
704
703
let unknown_1 = buffer. try_get_u16 ( ) ?;
705
704
let unknown_2 = buffer. try_get_u16 ( ) ?;
706
705
let unknown_3 = buffer. try_get_u8 ( ) ?;
707
- if cfg ! ( features = "osrs" ) {
706
+ if cfg ! ( feature = "osrs" ) {
708
707
//FIXME: Post rev 220
709
708
let _sound_retain = buffer. try_get_u8 ( ) ?;
710
709
}
0 commit comments