equal
deleted
inserted
replaced
1005 |
1005 |
1006 _current_player_id = (PlayerID)num; |
1006 _current_player_id = (PlayerID)num; |
1007 |
1007 |
1008 if (!LoadChunk(ls, p, player_chunk)) return false; |
1008 if (!LoadChunk(ls, p, player_chunk)) return false; |
1009 |
1009 |
|
1010 if (_old_string_id == 0) { |
|
1011 p->is_active = false; |
|
1012 return true; |
|
1013 } |
|
1014 |
1010 p->name_1 = RemapOldStringID(_old_string_id); |
1015 p->name_1 = RemapOldStringID(_old_string_id); |
1011 p->president_name_1 = RemapOldStringID(_old_string_id_2); |
1016 p->president_name_1 = RemapOldStringID(_old_string_id_2); |
1012 p->player_money = p->player_money; |
|
1013 _players_ai[_current_player_id].tick = ai_tick; |
1017 _players_ai[_current_player_id].tick = ai_tick; |
1014 |
1018 |
1015 if (num == 0) { |
1019 if (num == 0) { |
1016 /* If the first player has no name, make sure we call it UNNAMED */ |
1020 /* If the first player has no name, make sure we call it UNNAMED */ |
1017 if (p->name_1 == 0) |
1021 if (p->name_1 == 0) |