Applied patch for saveames in different resolutions.
Fixed campaign pictures.
This commit is contained in:
parent
2f0b1f2454
commit
51ca58c1b5
2 changed files with 12 additions and 2 deletions
|
@ -36,6 +36,8 @@
|
|||
<li>Future 1.19 Release<p>
|
||||
<ul>
|
||||
<li>+++
|
||||
<li>Fixed loading games saved with different resolutions (from Martin Renold).
|
||||
<li>Removed spaces from data files (from Martin Renold).
|
||||
<li>Changed the handling of contained units to a circular linked list (from Crestez Dan Leonard).
|
||||
<li>Compacted Unit::Rescued and Unit::Rescued from (from Crestez Dan Leonard).
|
||||
<li>Change Unit::Colors to a pointer(saves memory) (from Crestez Dan Leonard).
|
||||
|
|
|
@ -501,6 +501,8 @@ local void SaveViewports(FILE* file,const UI* ui)
|
|||
*/
|
||||
global void SaveUserInterface(FILE* file)
|
||||
{
|
||||
int i;
|
||||
|
||||
fprintf(file,"\n;;; -----------------------------------------\n");
|
||||
fprintf(file,";;; MODULE: ui $Id$\n\n");
|
||||
|
||||
|
@ -522,8 +524,14 @@ global void SaveUserInterface(FILE* file)
|
|||
fprintf(file,"(set-original-resources! %s)\n\n",
|
||||
TheUI.OriginalResources ? "#t" : "#f");
|
||||
|
||||
// Save the current UI
|
||||
SaveUi(file,&TheUI);
|
||||
// Save the UIs for all resolutions
|
||||
for( i=0; UI_Table[i]; ++i ) {
|
||||
SaveUi(file,UI_Table[i]);
|
||||
}
|
||||
|
||||
// FIXME: maxy: strange things could happen to the saved viewports
|
||||
// when loading them on a different resolution
|
||||
|
||||
SaveViewports(file,&TheUI);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue