economy.c
changeset 816 cee64d137cc8
parent 814 217997e8aae4
child 820 924f78b43e9e
equal deleted inserted replaced
815:eb9408648620 816:cee64d137cc8
   103 				value += v->value * 3 >> 1;
   103 				value += v->value * 3 >> 1;
   104 			}
   104 			}
   105 		}
   105 		}
   106 	}
   106 	}
   107 
   107 
   108 	if (p->player_money > p->current_loan)
   108 	if (p->player_money > 0)
   109 		value += p->money64 - p->current_loan; // add real money value
   109 		value += p->money64; // add real money value
   110 
   110 
   111 	return value;
   111 	return value;
   112 }
   112 }
   113 
   113 
   114 // if update is set to true, the economy is updated with this score
   114 // if update is set to true, the economy is updated with this score