forked from len0rd/rockbox
add yields in superdom, patch from FS#7528
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19389 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2e8266df12
commit
5a7454e878
1 changed files with 8 additions and 0 deletions
|
@ -1808,6 +1808,7 @@ void computer_allocate(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rb->yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(offensive) {
|
if(offensive) {
|
||||||
|
@ -1837,6 +1838,7 @@ void computer_allocate(void) {
|
||||||
i, j));
|
i, j));
|
||||||
k++;
|
k++;
|
||||||
}
|
}
|
||||||
|
rb->yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1903,6 +1905,7 @@ void computer_allocate(void) {
|
||||||
}
|
}
|
||||||
compres.bank += compres.cash;
|
compres.bank += compres.cash;
|
||||||
compres.cash = 0;
|
compres.cash = 0;
|
||||||
|
rb->yield();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Work out what to place on each square to defend it.
|
/* Work out what to place on each square to defend it.
|
||||||
|
@ -1933,6 +1936,7 @@ void computer_allocate(void) {
|
||||||
draw_board();
|
draw_board();
|
||||||
rb->sleep(HZ);
|
rb->sleep(HZ);
|
||||||
}
|
}
|
||||||
|
rb->yield();
|
||||||
}
|
}
|
||||||
} else if((total_str_diff+20)*15 < compres.cash) {
|
} else if((total_str_diff+20)*15 < compres.cash) {
|
||||||
/* Enough money to pay their way by planes */
|
/* Enough money to pay their way by planes */
|
||||||
|
@ -1966,6 +1970,7 @@ void computer_allocate(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rb->yield();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Tanks it is */
|
/* Tanks it is */
|
||||||
|
@ -1999,6 +2004,7 @@ void computer_allocate(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rb->yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compres.bank += compres.cash;
|
compres.bank += compres.cash;
|
||||||
|
@ -2082,6 +2088,7 @@ void computer_war(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rb->yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(compres.moves) {
|
if(compres.moves) {
|
||||||
|
@ -2120,6 +2127,7 @@ void computer_war(void) {
|
||||||
compres.moves--;
|
compres.moves--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rb->yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while(compres.moves > 0) {
|
while(compres.moves > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue