economy.c
changeset 653 989ae721eb8b
parent 630 3eb6abf08860
child 679 04ca2cd69420
equal deleted inserted replaced
652:206a7c2016ba 653:989ae721eb8b
  1512 	byte *b;
  1512 	byte *b;
  1513 
  1513 
  1514 	SET_EXPENSES_TYPE(EXPENSES_OTHER);
  1514 	SET_EXPENSES_TYPE(EXPENSES_OTHER);
  1515 	p = DEREF_PLAYER(p1);
  1515 	p = DEREF_PLAYER(p1);
  1516 
  1516 
       
  1517 	/* Those lines are here for network-protection (clients can be slow) */
       
  1518 	if (GetAmountOwnedBy(p, _current_player) == 0)
       
  1519 		return 0;
       
  1520 
  1517 	/* adjust it a little to make it less profitable to sell and buy */
  1521 	/* adjust it a little to make it less profitable to sell and buy */
  1518 	cost = CalculateCompanyValue(p) >> 2;
  1522 	cost = CalculateCompanyValue(p) >> 2;
  1519 	cost = -(cost - (cost >> 7));
  1523 	cost = -(cost - (cost >> 7));
  1520 
  1524 
  1521 	if (flags & DC_EXEC) {
  1525 	if (flags & DC_EXEC) {