FS#9971 - rework Superdom plugin

Attached to Project: Rockbox
Opened by Teruaki Kawashima (teru) - Sunday, 01 March 2009, 07:34 GMT
Last edited by Andrew Mahone (Unhelpful) - Saturday, 16 May 2009, 08:22 GMT
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Version 3.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


1. make duplicated code into function such as
putting resources on borad,
moving unit,
attacking to opponent's territory and calculating result.
2. change function computer_war to avoid endless loop.
3. simplify redundancy conditionals.
4. handle canceling at selecting place or input number.
5. use while(1) loop instead of goto.
6. use system font when drawing score. (part of  FS#7593  ?)
this maybe fixes bugs reported at  FS#9962 ,  FS#9963 ,  FS#9965 .
This task depends upon

Closed by  Andrew Mahone (Unhelpful)
Saturday, 16 May 2009, 08:22 GMT
Reason for closing:  Accepted
Additional comments about closing:  Committed as r20959.
Comment by Teruaki Kawashima (teru) - Wednesday, 04 March 2009, 15:46 GMT
i found some mistakes on my patch..
here is new one.
Comment by Teruaki Kawashima (teru) - Tuesday, 14 April 2009, 07:45 GMT
update patch.
fix bug. do rb->close(fd); after loading saved game.
resume from proper menu after load the save data. version is changed and cannot use old data.
e.g. if game was saved in War menu, game starts from War menu when loaded the game.
Comment by Hilton Shumway (HIllshum) - Monday, 11 May 2009, 16:19 GMT
This does fix at least  FS#9962 .
Comment by Hilton Shumway (HIllshum) - Monday, 11 May 2009, 16:39 GMT
And  FS#9963 
Comment by Hilton Shumway (HIllshum) - Wednesday, 13 May 2009, 15:26 GMT
 FS#9965  is fixed by this too.

Are we going to assume Teruaki is a real name or try to get a better one?
Comment by Teruaki Kawashima (teru) - Saturday, 16 May 2009, 07:24 GMT
edited name being shown to a better one.
but I believe my name is already in docs/CREDITS.