Kp
af55ba08cc
Pass grs_canvas &to draw_object_picture
2017-04-30 16:25:16 +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
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
Kp
c1d9c40931
Convert various valptridx accesses to use factory functions
2016-10-15 00:53:18 +00:00
Chris Taylor
ca35a8091f
Declare dcx::window with class keyword to clarify its intended use.
...
Also removes the need for the private keyword in the definition.
2016-10-03 11:15:22 +08:00
Kp
ee1003f29f
Move conditionally compiled code into namespace dsx
2016-08-25 04:05:32 +00:00
Kp
e8d5992797
Remove unused CENTER_STRING_LENGTH
2016-07-09 17:58:35 +00:00
Kp
27cef20eb3
Move namespace dsx handling to dsx-ns.h
2016-03-19 19:08:10 +00:00
Kp
b8f39b024a
Move DoMenu into dsx
2016-03-19 19:08:10 +00:00
Kp
8e86a3586d
Use #ifdef dsx to guard dsx namespace
2016-01-09 16:38:15 +00:00
Kp
86709f547b
Fix capitalization of PHYSFS_File
...
Per comment in physfs.h, the spelling PHYSFS_file is deprecated.
Replace all instances with PHYSFS_File.
2016-01-09 16:38:14 +00:00
Kp
d6359d0eb7
Use template for object rotation functions
2016-01-09 16:38:13 +00:00
Kp
98f5afa9f8
Remove default argument for basic_ptr(pointer,array &)
2016-01-09 16:38:13 +00:00
Kp
d479819931
Use absolute_sibling to reduce global references for ptridx
2015-12-22 04:18:51 +00:00
Kp
db9fb0ed42
Move more symbols into namespace dcx/dsx
2015-12-22 04:18:50 +00:00
Kp
dc8c0323d8
Uninline namespace dcx
2015-12-13 18:00:49 +00:00
Kp
34d89d5139
Use inline namespace dsx for segment.h
2015-12-05 22:57:25 +00:00
Kp
cfc35e819d
Use inline namespace dcx for common/maths
2015-12-05 22:57:24 +00:00
Kp
bf60f19aef
Use inline namespace dcx for common/editor
2015-12-05 22:57:24 +00:00
Kp
dbe4918f27
Use inline namespace dcx for common/arch/sdl
2015-12-05 22:57:24 +00:00
Kp
a9b82e3f7f
Make vlighting static
2015-12-04 03:36:31 +00:00
Kp
ed55763603
Remove unused symbols
2015-12-04 03:36:31 +00:00
Kp
166d203474
Use fwd-gr.h instead of repeated grs_canvas declarations
2015-11-26 02:56:55 +00:00
Kp
bb41075adb
Add preprocessor guards around types that vary by game
2015-11-26 02:56:55 +00:00
Kp
8b61b9f0db
Remove unused symbols
2015-10-24 03:13:11 +00:00
Kp
ad8b4230df
Move fwdsegment.h -> fwd-segment.h for consistency
2015-10-10 03:44:14 +00:00
Kp
946048c54b
Move valptridx subtypes to individual fwd headers
2015-08-22 20:43:04 +00:00
Kp
15fb75c1c7
Fix check_header_includes build
2015-07-25 23:10:45 +00:00
Kp
1adb56f16b
Make draw_mine_all static
2015-07-13 01:09:36 +00:00
Kp
fdd2356eac
Use segptridx for Cursegp, Markedsegp
2015-07-12 01:04:18 +00:00
Kp
9ecb8d8601
Use fwdvalptridx instead of inline forward declarations
2015-06-13 22:42:16 +00:00
Kp
36ce989db6
Refactor get_next_segment
2015-05-09 17:38:58 +00:00
Kp
6e9638531a
Mark get_previous_segment static
2015-04-22 02:44:31 +00:00
Kp
150e2d2686
Convert local arrays to array<>
2015-04-19 04:18:49 +00:00
Kp
36e1612ecb
Make undo_status array<const char *>
2015-04-02 02:36:56 +00:00
Kp
90fbebf8fd
Convert most global arrays to array<>
2015-04-02 02:36:52 +00:00
Kp
66a70fd373
Prepare for global arrays to be array<>
2015-04-02 02:36:52 +00:00
Kp
c3b09da175
Simplify assign_light_to_side
2015-02-27 03:30:33 +00:00
Kp
8a64ea3b0e
Use array<> for Vertex_active
2015-02-14 22:48:28 +00:00
Kp
f4517dc0bd
Reduce inclusion of segment.h
2015-01-29 04:27:36 +00:00
Kp
6b767c3a03
Remove various #include "gr.h"
2015-01-29 04:27:36 +00:00
Kp
6ccf6ae96b
Use range_for in segment.cpp
2015-01-12 00:26:02 +00:00
Kp
2d8f8b5d4a
Reduce inclusion of wall.h
2014-12-22 04:35:49 +00:00
Kp
89b1ff8795
Return unique_ptr from ui_add_gadget_userbox
2014-12-20 04:36:09 +00:00
Kp
f0c8482b8b
Use unique_ptr for trigger_dialog
2014-12-20 04:36:08 +00:00
Kp
e56fe128e0
Remove DosShell
2014-11-19 04:19:43 +00:00
Kp
57ed5c24fd
Add developer option to test header completeness
2014-11-17 04:02:25 +00:00
Kp
fd9a9a5166
Pass rotate_segment_new arg by &
2014-11-04 01:23:01 +00:00
Kp
c97f1136fa
Pass AttachSegmentNewAng arg by &
2014-11-04 01:20:07 +00:00
Kp
f5717c7db7
Pass med_rotate_segment vms_matrix by &
2014-11-02 03:44:31 +00:00
Kp
53aa70cecb
Use vsegptridx_t
2014-10-28 03:08:51 +00:00
Kp
f0d4c50fcc
Pass create_curve arg by &
2014-10-26 22:08:58 +00:00
Kp
ae6502f86b
Pass set_matrix_based_on_side arg by &
2014-10-26 22:01:18 +00:00
Kp
fc5b50c433
Pass med_create_new_segment arg by &
2014-10-26 22:01:13 +00:00
Kp
153ec60924
Remove unused vm_vec_to_angles
2014-10-26 21:36:57 +00:00
Kp
258d6b4a04
Pass place_object vms_vector arg by &
2014-10-26 21:36:10 +00:00
Kp
359fcb3ce7
Remove unused set_chase_matrix
2014-10-25 16:40:00 +00:00
Kp
32cb662f66
Remove unused s2s2(S)
2014-10-21 03:14:21 +00:00
Kp
a8f853aa7a
Pass d_event arg by const&
2014-10-04 22:36:13 +00:00
Kp
649704a37c
Pass med_create_segment arg as &
2014-10-02 03:02:37 +00:00
Kp
51470e5b4a
Pass sort_seg_list arg as &
2014-10-02 03:02:37 +00:00
Kp
ca3a4524a2
Pass med_extract_*_vector_from_segment_side arg as &
2014-10-02 03:02:37 +00:00
Kp
ad562e14a4
Remove unused curve_dir
2014-10-02 03:02:36 +00:00
Kp
07be2e3951
Pass curve_dist p0 by &
2014-10-02 03:02:36 +00:00
Kp
8aa9f071e6
Pass med_point_2_vec v by &
2014-10-02 03:02:36 +00:00
Kp
ff37e54087
Change Vertices to array<vertex>
2014-10-02 03:02:34 +00:00
Kp
2a3176dc98
Use array<> for segment members
2014-08-16 18:14:00 +00:00
Kp
125d9257be
Use special type names for segment/object numbers
2014-08-13 02:57:12 +00:00
Kp
9308162c80
Make alloc_vert/free_vert static
2014-08-08 03:02:24 +00:00
Kp
c1d184240d
Use unique_ptr to manage fonts
2014-07-22 23:48:23 +00:00
Kp
bd1c6d8c5d
Reduce header includes of physfsx.h
2014-07-22 23:48:23 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
094dfbf3d4
Reduce header inclusions
2013-12-31 03:22:03 +00:00
Kp
073f00974a
Eliminate uses of the typedef struct X { ... } X; pattern
...
C++ does not require this pattern.
import re, fileinput
to = re.compile(r'^typedef struct ([a-z_A-Z]+)\s*{')
tc = re.compile(r'^}(.*?)\s*([a-z_A-Z]+);$')
osn = None
for line in fileinput.input(inplace=True):
m = to.match(line)
if m:
osn = m.group(1)
print 'struct %s\n{' % osn
continue
if osn:
m = tc.match(line)
if m:
csn = m.group(2)
if osn == csn:
print '}%s;' % m.group(1)
osn = None
continue
else:
osn = None
print line,
2013-12-28 22:48:07 +00:00
Kp
58e740c0bd
Remove unused declaration of Center_names
2013-12-22 20:56:35 +00:00
Kp
f269ed7374
Make Been_visited a local bit array
2013-12-22 05:29:25 +00:00
Kp
9a7185f770
Store warning segments in countarray object
2013-12-22 05:27:16 +00:00
Kp
a8e9f9f624
Store found segments in countarray object
...
Raise MAX_FOUND_SEGS to MAX_SEGMENTS to ease code reuse.
2013-12-22 01:54:15 +00:00
Kp
c31c67c587
Store selected segments in countarray object
2013-12-22 01:54:15 +00:00
Kp
2f18c5037d
Store group lists as countarray objects
2013-12-18 03:48:52 +00:00
Kp
3d79fe9b40
Use editor_status instead of editor_status_fmt where possible
2013-12-17 04:03:34 +00:00
Kp
9de54cfa74
Switch to C++ linkage
...
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
if line == cxxguard:
guard = 1
continue
if guard:
if line == 'extern "C" {\n':
guard = 2
continue
if line == '}\n':
guard = 0
continue
if guard == 2:
assert(line == '#endif\n')
guard = 0
print cxxguard,
continue
print line,
2013-12-06 03:35:32 +00:00
Kp
d626b6c3d4
Add include guard to kdefs.h
2013-12-01 00:53:22 +00:00
Kp
663d81cc8f
Remove unused function med_rotate_segment_ang
2013-10-29 03:24:43 +00:00
Kp
be777c78a3
Remove unused function med_copy_segment
2013-10-29 03:24:43 +00:00
Kp
8ed99faf5c
Make headers freestanding
2013-10-26 03:50:28 +00:00
Kp
980621b9d4
Move similar/editor/med.c -> similar/editor/med.cpp
2012-11-17 06:14:09 +00:00
Kp
7de558490f
Move similar/editor/kfuncs.c -> similar/editor/kfuncs.cpp
2012-11-17 06:14:09 +00:00
Kp
65b809b218
Move similar/editor/info.c -> similar/editor/info.cpp
2012-11-17 06:14:09 +00:00
Kp
f95d401926
Move similar/editor/group.c -> similar/editor/group.cpp
2012-11-17 06:14:09 +00:00
Kp
2dddf084e0
Move similar/editor/eobject.c -> similar/editor/eobject.cpp
2013-10-05 23:10:44 +00:00
Kp
57a0b23ae4
Move similar/editor/elight.c -> similar/editor/elight.cpp
2013-10-05 23:09:01 +00:00
Kp
21c9e11811
Move similar/editor/centers.c -> similar/editor/centers.cpp
2013-10-05 23:07:23 +00:00
Kp
4db024f953
Move similar/main/gamesave.c -> similar/main/gamesave.cpp
2013-10-05 21:35:58 +00:00
Kp
e5ee9b72f1
Move similar/main/aipath.c -> similar/main/aipath.cpp
2013-10-05 21:35:58 +00:00
Kp
b4107e6526
Remove duplicate declarations
2013-10-03 03:11:52 +00:00
Kp
c58c4e4d06
Move declarations to headers
2013-10-03 03:11:52 +00:00
Kp
ff90315978
Use SConscript configure support to probe for format(printf) attribute
2013-07-27 22:17:13 +00:00
Kp
4577dd3977
Merge branch 'd2x-rebirth/master' into unification/master
2013-07-21 21:34:46 +00:00