scp-fs2open / scp-fs2open/fs2open.github.com

Pilotfile is saved too often within the Barracks

Open
#3,983 0 comments 0 reactions 0 assignees View on GitHub
cleanup pilot file
Dominant language
C++
Stars
487
Forks
184
Avg merge
3d 8h
Merged PRs (30d)
45

Description

The barracks is rather happy about saving to the plr file. Often.

pilotfile::save_player() is naturally triggered when a new pilot is created or cloned, but it is also saved whenever switching between singleplayer and multiplayer modes, as well as the simple act of just selecting a pilot.

The pilot file should only be saved if there are changes made, or if it needs to be converted to a different version when the Accept button is pressed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.