diff options
| author | Max Horn | 2003-09-13 02:11:05 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-09-13 02:11:05 +0000 | 
| commit | f18b68cb09b35123a30f5a6dde896f657a40aaf1 (patch) | |
| tree | 34495651b38c94cdfb80c44d275198c76f36e583 /sword2 | |
| parent | a00930fbcb32bdc1a591d294eb1d6a9aa7796c90 (diff) | |
| download | scummvm-rg350-f18b68cb09b35123a30f5a6dde896f657a40aaf1.tar.gz scummvm-rg350-f18b68cb09b35123a30f5a6dde896f657a40aaf1.tar.bz2 scummvm-rg350-f18b68cb09b35123a30f5a6dde896f657a40aaf1.zip  | |
wow - now I can walk around in the BS2 demo!
svn-id: r10206
Diffstat (limited to 'sword2')
| -rw-r--r-- | sword2/mouse.cpp | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/sword2/mouse.cpp b/sword2/mouse.cpp index 1251f76167..9dd116591f 100644 --- a/sword2/mouse.cpp +++ b/sword2/mouse.cpp @@ -1321,10 +1321,10 @@ int32 FN_init_floor_mouse(int32 *params)	// James29nov96  	ob_mouse->x1		= 0;  	ob_mouse->y1		= 0; -	ob_mouse->x2		= this_screen.screen_wide-1; -	ob_mouse->y2		= this_screen.screen_deep-1; -	ob_mouse->priority	= 9;				// floor is always lowest priority -	ob_mouse->pointer	= NORMAL_MOUSE_ID;	// normal pointer +	ob_mouse->x2		= TO_LE_32(this_screen.screen_wide-1); +	ob_mouse->y2		= TO_LE_32(this_screen.screen_deep-1); +	ob_mouse->priority	= TO_LE_32(9);				// floor is always lowest priority +	ob_mouse->pointer	= TO_LE_32(NORMAL_MOUSE_ID);	// normal pointer  	return(IR_CONT);	//	continue script @@ -1342,12 +1342,12 @@ int32 FN_set_scroll_left_mouse(int32 *params)	// James13feb97  	ob_mouse->x1		= 0;  	ob_mouse->y1		= 0; -	ob_mouse->x2		= this_screen.scroll_offset_x + SCROLL_MOUSE_WIDTH; -	ob_mouse->y2		= this_screen.screen_deep-1; +	ob_mouse->x2		= TO_LE_32(this_screen.scroll_offset_x + SCROLL_MOUSE_WIDTH); +	ob_mouse->y2		= TO_LE_32(this_screen.screen_deep-1);  	ob_mouse->priority	= 0;	// highest priority  	if (this_screen.scroll_offset_x > 0)	// if not fully scrolled to the left -		ob_mouse->pointer = SCROLL_LEFT_MOUSE_ID; +		ob_mouse->pointer = TO_LE_32(SCROLL_LEFT_MOUSE_ID);  	else  		ob_mouse->pointer = 0;	// so the mouse area doesn't get registered @@ -1362,14 +1362,14 @@ int32 FN_set_scroll_right_mouse(int32 *params)	// James13feb97   	Object_mouse	*ob_mouse = (Object_mouse *) params[0]; -	ob_mouse->x1		= this_screen.scroll_offset_x + screenWide - SCROLL_MOUSE_WIDTH; +	ob_mouse->x1		= TO_LE_32(this_screen.scroll_offset_x + screenWide - SCROLL_MOUSE_WIDTH);  	ob_mouse->y1		= 0; -	ob_mouse->x2		= this_screen.screen_wide-1; -	ob_mouse->y2		= this_screen.screen_deep-1; +	ob_mouse->x2		= TO_LE_32(this_screen.screen_wide-1); +	ob_mouse->y2		= TO_LE_32(this_screen.screen_deep-1);  	ob_mouse->priority	= 0;	// highest priority  	if (this_screen.scroll_offset_x < this_screen.max_scroll_offset_x)	// if not fully scrolled to the right -		ob_mouse->pointer = SCROLL_RIGHT_MOUSE_ID; +		ob_mouse->pointer = TO_LE_32(SCROLL_RIGHT_MOUSE_ID);  	else  		ob_mouse->pointer = 0;	// so the mouse area doesn't get registered  | 
