Kp
719de35484
Pass grs_bitmap to gr_pixel
2017-03-11 19:56:23 +00:00
Kp
c725a6cb88
Pass canvas to gr_init_font
2017-03-11 19:56:22 +00:00
Kp
8542940b24
Pass canvas to render_frame
2017-03-10 01:22:27 +00:00
Kp
81cc81a6de
Remove dead call to gr_set_curfont in init_editor
2017-03-10 01:22:27 +00:00
Kp
4d21fb8860
Pass canvas to init_editor_screen
2017-03-10 01:22:27 +00:00
Kp
1b8e6f5059
Cache canvas in print_status_bar
2017-03-10 01:22:27 +00:00
Kp
e6878e883c
Cache canvas in info_display_all
2017-03-10 01:22:26 +00:00
Kp
4a7a6663d5
Pass canvas to info_display_default
2017-03-10 01:22:26 +00:00
Kp
c708d30ca4
Pass canvas to info_display_segsize
2017-03-10 01:22:26 +00:00
Kp
8708f53177
Pass canvas to info_display_object_placement
2017-03-10 01:22:26 +00:00
Kp
b0f23ed7b1
Pass canvas to clear_pad_display
2017-03-10 01:22:26 +00:00
Kp
634079cfce
Cache canvas in eswitch.cpp
2017-03-10 01:22:26 +00:00
Kp
c786e34ec7
Factor out scale_free_verts calls in med_scale_segment_new
2017-03-10 01:22:24 +00:00
Chris Taylor
19e4c07bb0
Bosses generated by a robot maker or even released by another robot will now teleport
...
Fixes issue #328 .
2017-02-26 10:21:10 +08:00
Kp
08e4a6e620
Use stdint constants for some INT*_MAX
...
clang becomes confused trying to determine which vm_distance_squared
constructor to use for a literal input of 0x7fffffffffffffff, even
though the size of the input requires it to be `long` and only one
constructor can take a `long`. Switch from an explicit
0x7fffffffffffffff to the symbolic constant INT64_MAX, which has the
same value, but a platform-appropriate suffix to force the compiler to
pick the right type.
For general clarity, switch some other instances of integer maximum
literals to symbolic constants of the same value.
This commit has no effect on the generated code (except for changes to
line numbers).
Reported-by: kreatordxx <https://github.com/dxx-rebirth/dxx-rebirth/pull/324 >
Fixes: 17208cca79
("Disallow int for vm_distance_squared")
2017-02-22 03:05:43 +00:00
Kp
1a7659897a
Pass canvas to draw_model_picture
2017-02-19 19:33:44 +00:00
Kp
cdb193c053
Use unsigned for sides/verts in more places
2017-02-19 19:33:38 +00:00
Kp
0f00cf51b0
Make segment vertices unsigned
2017-02-19 19:33:37 +00:00
Kp
0d5d2e77a8
Pass canvas to g3_check_and_draw_poly
2017-02-11 21:42:42 +00:00
Kp
6f81d13c41
Pass canvas to gr_set_curfont
2017-02-11 21:42:38 +00:00
Kp
590a025a89
Pass canvas to g3_start_frame
2017-02-11 21:42:34 +00:00
Kp
80e7ade6a1
Pass canvas to g3_draw_sphere
2017-02-11 21:42:33 +00:00
Kp
513e7ceceb
Pass canvas to g3_draw_line
2017-02-11 21:42:33 +00:00
Kp
ae33aaafc1
Pass canvas to gr_set_fontcolor
2017-02-11 21:42:32 +00:00
Kp
d1657ba269
Make canvas an explicit argument to gr_uprintf
...
Previously, a macro implied *grd_curcanv as the canvas. Pass the canvas
explicitly so that callers can choose the canvas to use.
2017-02-11 21:42:32 +00:00
Kp
3fb0367423
Use range_for in duplicate_group
2017-02-11 21:42:31 +00:00
Kp
1a3d89aecf
Use vsegptridx in editor group functions
2017-02-11 21:42:31 +00:00
Chris Taylor
e9b0ca9a83
Don't decrement trigger in remove_trigger_num if it's trigger_none
...
Fixes a crash when loading a level with redundant triggers and editor enabled, e.g. Passion of Death.
2017-01-30 11:08:58 +08:00
Chris Taylor
30b5ef7c73
Create robot_create function and use it 4x
...
Contains 2 calls - to obj_create and init_ai_object. For safety reasons and tidiness compared to using obj_create directly. The call to init_ai_object in recreate_thief was already redundant.
2017-01-22 17:56:50 +08:00
Kp
6da2b446f5
Use range_for in editor/group.cpp
2017-01-21 19:05:42 +00:00
kreatordxx
f590ec45c6
Merge pull request #298 from dxx-rebirth/no_game_wind_close
...
Remove calls to window_close(Game_wind)
2017-01-09 09:32:24 +08:00
Kp
5da784dbed
Pass canvas to gr_{,u}string
2017-01-08 22:32:00 +00:00
Kp
1ef6b9d5bc
Pass font to gr_get_string_size
2017-01-08 22:31:59 +00:00
Kp
0480ba8030
Pass canvas to gr_string(int,int,const char*,int,int)
2017-01-08 22:31:59 +00:00
Chris Taylor
b7c41a0d98
Remove calls to window_close(Game_wind) within close_editor
...
These are redundant. Will remove all cases of window_close(Game_wind) - it's safer for the handler to return window_event_result::close.
2017-01-08 21:03:41 +08:00
Kp
22e364e030
Pass canvas to gr_clear_canvas
2017-01-01 00:45:45 +00:00
Kp
0905aefa0a
Pass canvas to gr_rect
2017-01-01 00:45:45 +00:00
Kp
c3c4ab8e3e
Pass canvas to gr_box
2017-01-01 00:45:44 +00:00
Kp
08d0aa9b59
Pass canvas to gr_bitmap
2016-12-29 03:27:13 +00:00
Kp
6ab3b18657
Pass canvas to gr_ubitmap
2016-12-29 03:27:12 +00:00
Kp
1fa5aef9ac
Pass canvas to gr_line
2016-12-29 03:27:10 +00:00
Kp
ef06aa089a
Pass canvas to gr_pixel
2016-12-29 03:27:09 +00:00
Kp
b3809266a3
Use enumerate in more loops
2016-12-11 01:56:44 +00:00
Kp
1f434f98ad
Use valptridx for ActiveDoors
2016-12-10 17:51:08 +00:00
Kp
f8cc32a4af
Merge pull #272 into master
2016-11-26 22:51:49 +00:00
Kp
ac5ccf0c08
Pass active_door &to wall_close_door_num
2016-11-26 22:51:48 +00:00
Chris Taylor
bf6eb99d7a
When switching to the editor in a game, use a proper saved game
...
This preserves virtually all game information, including active fire. The saved game 'gamesave.sge' can also be loaded with File->Restore Game State. The level can still be saved as usual (but it warns the user if there's an unsaved game state). This functionality may be useful for testing (or cheating! ;) )
2016-11-21 15:22:11 +08:00
Chris Taylor
2995cb628c
Never set Current_level_num to 0
...
This will be required when proper game state editing is implemented. Also remove hacks that check Current_level_num == 0.
2016-11-21 15:22:11 +08:00
Chris Taylor
a06316f11e
Fix crash when pressing Meta key (or Command key for Macs) in editor
2016-11-15 17:20:35 +08:00
Chris Taylor
cc3f35649f
Change all occurrences of "Couldn't" to "Could not" for consistency ("Could not" is more common and wins).
...
Not touching TXT_COULDNT because it's stored separately in hog file.
2016-11-13 13:27:18 +08:00