fix team assignments again
This commit is contained in:
parent
fb6e084920
commit
8e1405a023
2 changed files with 5 additions and 4 deletions
src
|
@ -163,6 +163,8 @@ static FullReplay *StartReplay()
|
|||
replay->Comment1 = "Generated by Stratagus Version " VERSION "";
|
||||
replay->Comment2 = "Visit " HOMEPAGE " for more information";
|
||||
|
||||
replay->ReplaySettings = GameSettings;
|
||||
|
||||
for (int i = 0; i < PlayerMax; ++i) {
|
||||
replay->PlayerNames[i] = Players[i].Name;
|
||||
replay->ReplaySettings.Presets[i].PlayerColor = GameSettings.Presets[i].PlayerColor;
|
||||
|
@ -178,7 +180,6 @@ static FullReplay *StartReplay()
|
|||
replay->Map = Map.Info.Description;
|
||||
replay->MapId = (signed int)Map.Info.MapUID;
|
||||
replay->MapPath = CurrentMapPath;
|
||||
replay->ReplaySettings = GameSettings;
|
||||
|
||||
replay->Engine[0] = StratagusMajorVersion;
|
||||
replay->Engine[1] = StratagusMinorVersion;
|
||||
|
|
|
@ -113,10 +113,10 @@ static_assert(MAX_RACES < 256, "Race selection needs to fit into 8 bits");
|
|||
static_assert(PlayerMax < 256, "Team number must fit into 8 bits");
|
||||
|
||||
struct SettingsPresets {
|
||||
uint8_t PlayerColor; /// Color of a player
|
||||
int8_t PlayerColor; /// Color of a player
|
||||
std::string AIScript; /// AI script for computer to use
|
||||
uint8_t Race; /// Race of the player
|
||||
uint8_t Team; /// Team of player
|
||||
int8_t Race; /// Race of the player
|
||||
int8_t Team; /// Team of player
|
||||
PlayerTypes Type; /// Type of player (for network games)
|
||||
|
||||
void Save(const std::function <void (std::string)>& f) {
|
||||
|
|
Loading…
Add table
Reference in a new issue