Changeset - r196:fbfc6de3362b
[Not reviewed]
master
0 3 0
darkvater - 20 years ago 2004-09-10 22:43:40
darkvater@openttd.org
(svn r197) -Fix: Disable Fast Forward in network games visually (didn't work anyways, just showed graphical output)
3 files changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
main_gui.c
Show inline comments
 
@@ -1654,6 +1654,9 @@ static void MainToolbarWndProc(Window *w
 
		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
 
		GfxFillRect(0, 0, w->width-1, w->height-1, 0x80B4);
 

	
 
		// if networking, disable fast-forward button
 
		if (_networking) w->disabled_state |= (1 << 1);
 

	
 
		// if spectator, disable things
 
		if (_current_player == OWNER_SPECTATOR){
 
			w->disabled_state |= (1 << 0) | (1 << 19) | (1<<20) | (1<<21) | (1<<22) | (1<<23);
sdl.c
Show inline comments
 
@@ -542,7 +542,7 @@ static int SdlVideoMainLoop()
 
#else
 
		if (keys[SDLK_TAB]) {
 
#endif
 
			_fast_forward |= 2;
 
			if (!_networking) _fast_forward |= 2;
 
		} else if (_fast_forward&2) {
 
			_fast_forward = 0;
 
		}
win32.c
Show inline comments
 
@@ -672,7 +672,7 @@ static int Win32GdiMainLoop()
 
#else
 
		if (_wnd.has_focus && GetAsyncKeyState(VK_TAB) < 0) {
 
#endif
 
			_fast_forward |= 2;
 
			if (!_networking) _fast_forward |= 2;
 
		} else if (_fast_forward&2) {
 
			_fast_forward = 0;
 
		}
0 comments (0 inline, 0 general)