No tips in network play.

This commit is contained in:
johns 2002-05-19 22:05:53 +00:00
parent fa69484e93
commit aed422c237
4 changed files with 21 additions and 8 deletions

View file

@ -808,7 +808,12 @@
<LI>Fixed bug #422586: Lose a group on entering a building.
<LI>Fixed bug #515713: Color didn't cycle continuos in buttons.
<LI>Fixed bug #520492: Small map crashed with big screen.
<LI>Multiple viewports implementation separated completely from the old single-viewport one, reported bugs fixed.
<LI>Multiple viewports implementation separated completely from the old
single-viewport one, reported bugs fixed. (from Latimerius)
<LI>Fixed bug #472075: Diplomacy over network.
<LI>Fixed bug #440634: Sea Attack: Can't use transports.
<LI>Fixed bug #557954: Opponent's action markers are visible.
<LI>The tips are only shown in the single player game.
<LI>+++
</UL>

View file

@ -689,12 +689,16 @@ global void GameMainLoop(void)
GameCursor=TheUI.Point.Cursor;
GameRunning=1;
showtip=ShowTips;
showtip=0;
if( NetworkFildes==-1 ) { // Don't show them for net play
showtip=ShowTips;
}
for( ; GameRunning; ) {
#if DEBUG
if (setjmp (main_loop))
if (setjmp (main_loop)) {
GamePaused = 1;
}
#endif
//
// Game logic part

View file

@ -137,6 +137,7 @@ local SCM CclSetShowTips(SCM flag)
** @param tip A new tip to be displayed before level.
**
** @todo FIXME: Memory for tips is never freed.
** FIXME: Make Tips dynamic.
*/
local SCM CclAddTip(SCM tip)
{

View file

@ -2494,10 +2494,11 @@ local void InitTips(Menuitem *mi __attribute__((unused)))
int font;
int l;
if( ShowTips )
if( ShowTips ) {
TipsMenuItems[1].d.gem.state=MI_GSTATE_CHECKED;
else
} else {
TipsMenuItems[1].d.gem.state=MI_GSTATE_UNCHECKED;
}
FreeTips();
@ -2507,8 +2508,9 @@ local void InitTips(Menuitem *mi __attribute__((unused)))
line=5;
p=Tips[CurrentTip];
if( !p )
if( !p ) {
return;
}
l=0;
s=str=strdup(p);
@ -2527,8 +2529,9 @@ local void InitTips(Menuitem *mi __attribute__((unused)))
fprintf(stderr, "line too long: \"%s\"\n", s);
break;
}
if( space )
if( space ) {
*space=' ';
}
space=s1;
*space='\0';
}
@ -5391,7 +5394,7 @@ global void InitMenus(unsigned int race)
MenuButtonGfx.Sprite = LoadSprite(file, 300, 144); // 50/53 images!
//
// Autodetect the swamp tileset
// Autodetect the swamp tileset
//
#ifdef HAVE_EXPANSION
strcpy(ScenSelectFullPath, FreeCraftLibPath);