- #define PEASANTS_DO_NOT_STARVE 1

This commit is contained in:
Christian Schlittchen 2002-02-24 19:32:48 +00:00
parent 921add5ac1
commit 5c11911e67
2 changed files with 4 additions and 0 deletions

View File

@ -590,6 +590,7 @@ peasants(region * r)
/* Alle werden satt, oder halt soviele für die es auch Geld gibt */ /* Alle werden satt, oder halt soviele für die es auch Geld gibt */
#if PEASANTS_DO_NOT_STARVE == 0
money = rmoney(r); money = rmoney(r);
satiated = min(peasants, money / MAINTENANCE); satiated = min(peasants, money / MAINTENANCE);
rsetmoney(r, money - satiated * MAINTENANCE); rsetmoney(r, money - satiated * MAINTENANCE);
@ -610,6 +611,8 @@ peasants(region * r)
msg_release(msg); msg_release(msg);
peasants -= dead; peasants -= dead;
} }
#endif
rsetpeasants(r, peasants); rsetpeasants(r, peasants);
} }

View File

@ -27,3 +27,4 @@
#define PEASANT_ADJUSTMENT 1 #define PEASANT_ADJUSTMENT 1
#define SKILLPOINTS 0 #define SKILLPOINTS 0
#define NEW_MIGRATION 1 #define NEW_MIGRATION 1
#define PEASANTS_DO_NOT_STARVE 1