summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-02-04 12:50:13 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-02-04 12:50:13 +0000
commitee074e35afa06915ffdffa4c45b4ef39703c5a00 (patch)
tree474b5c77d42e08123b60d6c86a28aff95520c297 /apps/plugins
parent723d5c6da6ee6c0bc028cf9a79642d05e4701731 (diff)
superdom: fix bug that "Human starting factories" setting is ignored (part of FS#10964).
humanstartfarms was used where humanstartinds shuold be used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24509 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/superdom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c
index 4113ed7de2..2cd1d8e902 100644
--- a/apps/plugins/superdom.c
+++ b/apps/plugins/superdom.c
@@ -273,7 +273,7 @@ void init_board(void) {
compres.inds++;
}
}
- while(humanres.farms<superdom_settings.humanstartfarms) {
+ while(humanres.farms < superdom_settings.humanstartfarms) {
i = rb->rand()%10 + 1;
j = rb->rand()%10 + 1;
if((board[i][j].colour == COLOUR_LIGHT)&&(board[i][j].farm == false)) {
@@ -281,7 +281,7 @@ void init_board(void) {
humanres.farms++;
}
}
- while(humanres.inds<superdom_settings.humanstartfarms) {
+ while(humanres.inds < superdom_settings.humanstartinds) {
i = rb->rand()%10 + 1;
j = rb->rand()%10 + 1;
if((board[i][j].colour == COLOUR_LIGHT) && (board[i][j].ind == false)) {
@@ -660,7 +660,7 @@ int save_game(void) {
rb->write(fd, &superdom_settings.compstartfarms, sizeof(int));
rb->write(fd, &superdom_settings.compstartinds, sizeof(int));
rb->write(fd, &superdom_settings.humanstartfarms, sizeof(int));
- rb->write(fd, &superdom_settings.humanstartfarms, sizeof(int));
+ rb->write(fd, &superdom_settings.humanstartinds, sizeof(int));
rb->write(fd, &superdom_settings.startcash, sizeof(int));
rb->write(fd, &superdom_settings.startfood, sizeof(int));
rb->write(fd, &superdom_settings.movesperturn, sizeof(int));
@@ -1969,7 +1969,7 @@ static int load_game(const char* file) {
rb->read(fd, &superdom_settings.compstartfarms, sizeof(int));
rb->read(fd, &superdom_settings.compstartinds, sizeof(int));
rb->read(fd, &superdom_settings.humanstartfarms, sizeof(int));
- rb->read(fd, &superdom_settings.humanstartfarms, sizeof(int));
+ rb->read(fd, &superdom_settings.humanstartinds, sizeof(int));
rb->read(fd, &superdom_settings.startcash, sizeof(int));
rb->read(fd, &superdom_settings.startfood, sizeof(int));
rb->read(fd, &superdom_settings.movesperturn, sizeof(int));