722 |
722 |
723 return true; |
723 return true; |
724 } |
724 } |
725 |
725 |
726 static PlayerID _current_player_id; |
726 static PlayerID _current_player_id; |
727 static uint16 _old_inaugurated_year; |
|
728 static int32 _old_yearly; |
727 static int32 _old_yearly; |
729 |
728 |
730 static const OldChunks player_yearly_chunk[] = { |
729 static const OldChunks player_yearly_chunk[] = { |
731 OCL_VAR( OC_INT32, 1, &_old_yearly ), |
730 OCL_VAR( OC_INT32, 1, &_old_yearly ), |
732 OCL_END() |
731 OCL_END() |
937 OCL_SVAR( OC_FILE_U32 | OC_VAR_U16, Player, cargo_types ), |
936 OCL_SVAR( OC_FILE_U32 | OC_VAR_U16, Player, cargo_types ), |
938 |
937 |
939 OCL_CHUNK( 3, OldPlayerYearly ), |
938 OCL_CHUNK( 3, OldPlayerYearly ), |
940 OCL_CHUNK( 1, OldPlayerEconomy ), |
939 OCL_CHUNK( 1, OldPlayerEconomy ), |
941 |
940 |
942 OCL_VAR ( OC_UINT16, 1, &_old_inaugurated_year ), |
941 OCL_SVAR( OC_FILE_U16 | OC_VAR_I32, Player, inaugurated_year), |
943 OCL_SVAR( OC_TILE, Player, last_build_coordinate ), |
942 OCL_SVAR( OC_TILE, Player, last_build_coordinate ), |
944 OCL_SVAR( OC_UINT8, Player, num_valid_stat_ent ), |
943 OCL_SVAR( OC_UINT8, Player, num_valid_stat_ent ), |
945 |
944 |
946 OCL_CHUNK( 1, OldPlayerAI ), |
945 OCL_CHUNK( 1, OldPlayerAI ), |
947 |
946 |
948 OCL_SVAR( OC_UINT8, Player, block_preview ), |
947 OCL_SVAR( OC_UINT8, Player, block_preview ), |
949 OCL_SVAR( OC_UINT8, Player, ai.tick ), |
948 OCL_SVAR( OC_UINT8, Player, ai.tick ), |
988 to 10000.. this is a very VERY small chance ;) */ |
987 to 10000.. this is a very VERY small chance ;) */ |
989 if (p->player_money == 893288) |
988 if (p->player_money == 893288) |
990 p->money64 = p->player_money = p->current_loan = 100000; |
989 p->money64 = p->player_money = p->current_loan = 100000; |
991 |
990 |
992 _player_colors[num] = p->player_color; |
991 _player_colors[num] = p->player_color; |
993 p->inaugurated_year = _old_inaugurated_year; |
992 p->inaugurated_year -= ORIGINAL_BASE_YEAR; |
994 if (p->location_of_house == 0xFFFF) |
993 if (p->location_of_house == 0xFFFF) |
995 p->location_of_house = 0; |
994 p->location_of_house = 0; |
996 |
995 |
997 /* State 20 for AI players is sell vehicle. Since the AI struct is not |
996 /* State 20 for AI players is sell vehicle. Since the AI struct is not |
998 * really figured out as of now, p->ai.cur_veh; needed for 'sell vehicle' |
997 * really figured out as of now, p->ai.cur_veh; needed for 'sell vehicle' |