aboutsummaryrefslogtreecommitdiff
path: root/sword2/mouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/mouse.cpp')
-rw-r--r--sword2/mouse.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/sword2/mouse.cpp b/sword2/mouse.cpp
index 9dd116591f..938017a6ca 100644
--- a/sword2/mouse.cpp
+++ b/sword2/mouse.cpp
@@ -1252,13 +1252,13 @@ int32 FN_register_mouse(int32 *params) //Tony29Oct96
Con_fatal_error("ERROR: mouse_list full [%s line %u]",__FILE__,__LINE__);
#endif
- mouse_list[cur_mouse].x1 = FROM_LE_32(ob_mouse->x1);
- mouse_list[cur_mouse].y1 = FROM_LE_32(ob_mouse->y1);
- mouse_list[cur_mouse].x2 = FROM_LE_32(ob_mouse->x2);
- mouse_list[cur_mouse].y2 = FROM_LE_32(ob_mouse->y2);
+ mouse_list[cur_mouse].x1 = ob_mouse->x1;
+ mouse_list[cur_mouse].y1 = ob_mouse->y1;
+ mouse_list[cur_mouse].x2 = ob_mouse->x2;
+ mouse_list[cur_mouse].y2 = ob_mouse->y2;
- mouse_list[cur_mouse].priority = FROM_LE_32(ob_mouse->priority);
- mouse_list[cur_mouse].pointer = FROM_LE_32(ob_mouse->pointer);
+ mouse_list[cur_mouse].priority = ob_mouse->priority;
+ mouse_list[cur_mouse].pointer = ob_mouse->pointer;
//-----------------------------------------------
// (James17jun97)
@@ -1321,10 +1321,10 @@ int32 FN_init_floor_mouse(int32 *params) // James29nov96
ob_mouse->x1 = 0;
ob_mouse->y1 = 0;
- 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
+ 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
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 = TO_LE_32(this_screen.scroll_offset_x + SCROLL_MOUSE_WIDTH);
- ob_mouse->y2 = TO_LE_32(this_screen.screen_deep-1);
+ ob_mouse->x2 = this_screen.scroll_offset_x + SCROLL_MOUSE_WIDTH;
+ ob_mouse->y2 = 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 = TO_LE_32(SCROLL_LEFT_MOUSE_ID);
+ ob_mouse->pointer = 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 = TO_LE_32(this_screen.scroll_offset_x + screenWide - SCROLL_MOUSE_WIDTH);
+ ob_mouse->x1 = this_screen.scroll_offset_x + screenWide - SCROLL_MOUSE_WIDTH;
ob_mouse->y1 = 0;
- ob_mouse->x2 = TO_LE_32(this_screen.screen_wide-1);
- ob_mouse->y2 = TO_LE_32(this_screen.screen_deep-1);
+ ob_mouse->x2 = this_screen.screen_wide-1;
+ ob_mouse->y2 = 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 = TO_LE_32(SCROLL_RIGHT_MOUSE_ID);
+ ob_mouse->pointer = SCROLL_RIGHT_MOUSE_ID;
else
ob_mouse->pointer = 0; // so the mouse area doesn't get registered