@@ -3144,25 +3144,24 @@ void kill_room_slab_and_contents(PlayerNumber plyr_idx, MapSlabCoord slb_x, MapS
31443144void free_room_structure (struct Room * room )
31453145{
31463146 PlayerNumber owner = room -> owner ;
3147- if ( game .neutral_player_num != owner )
3148- {
3149- struct Dungeon * dungeon = get_dungeon (owner );
31503147
3151- if ( room -> index == dungeon -> room_list_start [ room -> kind ] )
3152- {
3153- dungeon -> room_list_start [room -> kind ] = room -> next_of_owner ;
3154- struct Room * next_room = room_get ( room -> next_of_owner );
3155- next_room -> prev_of_owner = 0 ;
3156- }
3157- else
3158- {
3159- struct Room * next_room = room_get ( room -> next_of_owner );
3160- next_room -> prev_of_owner = room -> prev_of_owner ;
3161- struct Room * prev_room = room_get (room -> prev_of_owner );
3162- prev_room -> next_of_owner = room -> next_of_owner ;
3163- }
3164- -- dungeon -> room_discrete_count [ room -> kind ] ;
3148+ struct Dungeon * dungeon = get_dungeon ( owner );
3149+
3150+ if ( room -> index == dungeon -> room_list_start [room -> kind ] )
3151+ {
3152+ dungeon -> room_list_start [ room -> kind ] = room -> next_of_owner ;
3153+ struct Room * next_room = room_get ( room -> next_of_owner );
3154+ next_room -> prev_of_owner = 0 ;
3155+ }
3156+ else
3157+ {
3158+ struct Room * next_room = room_get (room -> next_of_owner );
3159+ next_room -> prev_of_owner = room -> prev_of_owner ;
3160+ struct Room * prev_room = room_get ( room -> prev_of_owner );
3161+ prev_room -> next_of_owner = room -> next_of_owner ;
31653162 }
3163+ -- dungeon -> room_discrete_count [room -> kind ];
3164+
31663165 remove_room_from_global_list (room );
31673166 delete_room_structure (room );
31683167}
0 commit comments