src/oldloader.cpp
changeset 10010 09ff8bd74b87
parent 9941 8549448b55fa
child 10207 c291a21b304e
equal deleted inserted replaced
10009:41d822dd3350 10010:09ff8bd74b87
   991 	OCL_CHUNK( 1, OldPlayerAI ),
   991 	OCL_CHUNK( 1, OldPlayerAI ),
   992 
   992 
   993 	OCL_SVAR(  OC_UINT8, Player, block_preview ),
   993 	OCL_SVAR(  OC_UINT8, Player, block_preview ),
   994 	 OCL_VAR(  OC_UINT8,   1, &ai_tick ),
   994 	 OCL_VAR(  OC_UINT8,   1, &ai_tick ),
   995 	OCL_SVAR(  OC_UINT8, Player, avail_railtypes ),
   995 	OCL_SVAR(  OC_UINT8, Player, avail_railtypes ),
   996 	OCL_SVAR(   OC_TILE, Player, location_of_house ),
   996 	OCL_SVAR(   OC_TILE, Player, location_of_HQ ),
   997 	OCL_SVAR(  OC_UINT8, Player, share_owners[0] ),
   997 	OCL_SVAR(  OC_UINT8, Player, share_owners[0] ),
   998 	OCL_SVAR(  OC_UINT8, Player, share_owners[1] ),
   998 	OCL_SVAR(  OC_UINT8, Player, share_owners[1] ),
   999 	OCL_SVAR(  OC_UINT8, Player, share_owners[2] ),
   999 	OCL_SVAR(  OC_UINT8, Player, share_owners[2] ),
  1000 	OCL_SVAR(  OC_UINT8, Player, share_owners[3] ),
  1000 	OCL_SVAR(  OC_UINT8, Player, share_owners[3] ),
  1001 
  1001 
  1039 	if (p->player_money == 893288)
  1039 	if (p->player_money == 893288)
  1040 		p->player_money = p->current_loan = 100000;
  1040 		p->player_money = p->current_loan = 100000;
  1041 
  1041 
  1042 	_player_colors[num] = p->player_color;
  1042 	_player_colors[num] = p->player_color;
  1043 	p->inaugurated_year -= ORIGINAL_BASE_YEAR;
  1043 	p->inaugurated_year -= ORIGINAL_BASE_YEAR;
  1044 	if (p->location_of_house == 0xFFFF)
  1044 	if (p->location_of_HQ == 0xFFFF)
  1045 		p->location_of_house = 0;
  1045 		p->location_of_HQ = 0;
  1046 
  1046 
  1047 	/* State 20 for AI players is sell vehicle. Since the AI struct is not
  1047 	/* State 20 for AI players is sell vehicle. Since the AI struct is not
  1048 	 * really figured out as of now, _players_ai[p->index].cur_veh; needed for 'sell vehicle'
  1048 	 * really figured out as of now, _players_ai[p->index].cur_veh; needed for 'sell vehicle'
  1049 	 * is NULL and the function will crash. To fix this, just change the state
  1049 	 * is NULL and the function will crash. To fix this, just change the state
  1050 	 * to some harmless state, like 'loop vehicle'; 1 */
  1050 	 * to some harmless state, like 'loop vehicle'; 1 */