Skip to content

Commit a2c0500

Browse files
authored
Fix asteroids toggling (scp-fs2open#7188)
1 parent 2af0aef commit a2c0500

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

freespace2/freespace.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,11 @@ void game_post_level_init()
14271427
#endif
14281428

14291429
training_mission_init();
1430+
1431+
// the asteroids enabled variable can be set via sexp
1432+
// so ensure it is resets to the default value before creating asteroids
1433+
// --wookieejedi
1434+
Asteroids_enabled = 1;
14301435
asteroid_create_all();
14311436

14321437
// set ambient light for level

0 commit comments

Comments
 (0)