Kp
6d30980b88
Avoid pointer subtraction searching group list
2014-07-16 03:21:04 +00:00
Kp
4c7249a016
Return vms_matrix from vm_matrix_x_matrix
2014-07-14 02:17:40 +00:00
Kp
03574d0f5e
Change vm_vec_* macros to inline functions
2014-07-13 03:43:32 +00:00
Kp
2e95d8c0a8
Use array<> for Walls
2014-06-20 02:59:53 +00:00
Kp
bd35eb7469
Use array<> for wclip arrays
2014-06-14 23:13:38 +00:00
Kp
dfc4b66f95
Use std::swap in meddraw.cpp
2014-06-08 00:05:33 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
a2427f58b5
Use special type to reduce pointer/index conversions
2014-01-12 19:32:12 +00:00
vobject
35ada6e8d9
Fix copy&paste error in UI debugging info
2014-01-07 21:56:05 +01:00
Kp
9a5d0f6f09
Use symbolic values for segment/object first/none
2014-01-06 04:17:55 +00: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
38b2dbe639
Move object* -> objnum conversion into init_ai_object
2013-12-28 22:10:24 +00:00
Kp
f9fca1c9bd
Fix editor crash introduced by bad use of globals
2013-12-25 23:48:39 +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
1e8036bd24
Split compiler.h for PCH compatibility
2013-12-21 05:12:38 +00:00
Kp
d2c2dfe95c
Make Segments[] a C++ array
2013-12-19 03:31:24 +00:00
Kp
a265792497
Remove DPMI-based DO_MEMINFO
2013-12-19 03:31:24 +00:00
Kp
83f7427aad
Convert vsprintf to vsnprintf
2013-12-18 05:00:36 +00:00
Kp
2f18c5037d
Store group lists as countarray objects
2013-12-18 03:48:52 +00:00
Kp
8c649b677b
Optimize group deletion
2013-12-18 03:46:50 +00:00
Kp
7fe542abc3
Simplify SubtractFromGroup cleanup
2013-12-17 04:43:38 +00:00
Kp
3381e5de52
Simplify group exhaustion test in med_move_group
2013-12-17 04:03:35 +00:00
Kp
21cc89e2c8
Use ui_dputs_at instead of ui_dprintf_at where possible
2013-12-17 04:03:34 +00:00
Kp
3d79fe9b40
Use editor_status instead of editor_status_fmt where possible
2013-12-17 04:03:34 +00:00
Kp
be041a9cfc
Add type checking for ui_create_dialog
2013-12-17 03:49:24 +00:00
Kp
cea46651fc
Check type of window handler function
2013-12-15 18:51:26 +00:00
Kp
5ba6917c30
Optimize Degroup not to use n² deletion algorithm
2013-12-11 04:05:58 +00:00
Kp
23e58e2deb
Use bitwise-not, not boolean-not, for texture masks
2013-12-11 04:03:04 +00:00
Kp
3b9b5ebfb0
Use RAII to manage function-local heap objects
2013-12-08 19:04:52 +00:00
Kp
8e0e19cd27
Move medkey_init LispCommand onto stack
2013-12-08 18:26:19 +00:00
Kp
769c5bc837
Move autosave_mine savename onto stack
2013-12-08 18:26:19 +00:00
Kp
3a1d646dc8
Move close_autosave delname onto stack
2013-12-08 18:26:19 +00:00
Kp
75c229c6bf
Normalize con_printf newline usage
2013-12-07 21:13:37 +00:00
Kp
a2cec5d71f
Switch PHYSFSX_fgets to auto-sized variant where possible
2013-12-07 18:39:19 +00:00
Kp
1d3395cad1
Improve strlen usage
2013-12-06 00:24:07 +00:00
Kp
2de5c3b6d7
Mark editor filename buffers static
2013-11-28 00:27:43 +00:00
Kp
65d1d1bcde
Make edge_colors static, and const if D1
2013-11-28 00:27:43 +00:00
Kp
2d5f7c2ce3
Make edges[] const
2013-11-28 00:27:43 +00:00
Kp
03daa71a02
Remove unused center_names
2013-11-28 00:27:43 +00:00
Kp
203b85a0b1
Make Edge_between_sides static const
2013-11-28 00:27:43 +00:00
Kp
386c193cae
Make med_functions const
2013-11-28 00:27:43 +00:00
Kp
1932647fb1
Set Texture* values at load time
2013-11-24 23:50:43 +00:00
Kp
ed8484f096
Remove unnecessary packing on vms_vector
2013-11-08 03:14:43 +00:00
Kp
2714679284
Mark private functions static
2013-11-02 04:23:55 +00:00
Kp
547f5e33d2
Remove unused function compress_uv_coordinates_in_segment
2013-10-29 03:24:43 +00:00
Kp
875c07a71e
Remove unused function med_move_vertex
2013-10-29 03:24:43 +00:00
Kp
424c1e4ba0
Remove unused function med_move_wall
2013-10-29 03:24:43 +00:00
Kp
b0552d37c2
Remove unused function compress_uv_coordinates_all
2013-10-29 03:24:43 +00:00
Kp
3f111aa69f
Remove unused function area_on_all_sides
2013-10-29 03:24:43 +00:00
Kp
f2bb6a34c2
Remove unused function average_connectivity
2013-10-29 03:24:43 +00:00
Kp
77d13d1d28
Remove unused function set_average_light_on_all_fast
2013-10-29 03:24:43 +00:00
Kp
26bc496c91
Remove unused function print_normals
2013-10-29 03:24:43 +00:00
Kp
9b774ff8db
Remove unused function scale_free_vertices
2013-10-29 03:24:43 +00:00
Kp
220bf37fd7
Remove unused function compute_uv_dist
2013-10-29 03:24:43 +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
765f34eb0a
Remove unused function med_check_all_vertices
2013-10-29 03:24:42 +00:00
Kp
42b09d561b
Remove unused function check_for_overlapping_segment
2013-10-29 03:24:42 +00:00
Kp
d1e22c0bc9
Remove unused function check_for_overlapping_segments
2013-10-29 03:24:42 +00:00
Kp
a80ad74092
Remove unused function assign_default_uvs_to_curseg
2013-10-29 03:24:42 +00:00
Kp
738877925a
Remove unused function assign_default_uvs_to_curside
2013-10-29 03:24:42 +00:00
Kp
f54080139f
Remove unused function wall_delete_bogus
2013-10-29 03:24:42 +00:00
Kp
478c895758
Remove unused function delete_all_triggers
2013-10-29 03:24:42 +00:00
Kp
97b2a6cb50
Remove unused function dump_walls_info
2013-10-29 03:24:42 +00:00
Kp
16f897027b
Remove unused function check_lighting_all
2013-10-29 03:24:42 +00:00
Kp
0e130cc40c
Remove unused function set_all_modes_to_hover
2013-10-29 03:24:42 +00:00
Kp
d1ad26b6b0
Remove unused function ForceTotalRedraw
2013-10-29 03:24:42 +00:00
Kp
a8d39f50bc
Remove unused file similar/editor/fixseg.cpp
2013-10-29 03:24:42 +00:00
Kp
aae4541726
Remove unused function vm_vec_interp
2013-10-29 03:24:42 +00:00
Kp
da6e34679d
Remove unused function add_trigger_control
2013-10-29 03:24:42 +00:00
Kp
66904376e2
Delete unused function select_group
2013-10-29 03:24:42 +00:00
Kp
2abc1efb21
Delete unused function ObjectMakeLarger
2013-10-29 03:24:42 +00:00
Kp
46bf9602d1
Delete unused function ObjectMakeSmaller
2013-10-29 03:24:42 +00:00
Kp
e2147f7234
Remove unused function DeleteCurSegment
2013-10-29 03:24:42 +00:00
Kp
3c6f3aef9b
Move similar/editor/texture.c -> similar/editor/texture.cpp
2012-11-17 06:14:09 +00:00
Kp
58ef5a08f0
Move similar/editor/texpage.c -> similar/editor/texpage.cpp
2012-11-17 06:14:09 +00:00
Kp
9a3e2520c0
Move similar/editor/seguvs.c -> similar/editor/seguvs.cpp
2012-11-17 06:14:09 +00:00
Kp
6f441fbef4
Move similar/editor/segment.c -> similar/editor/segment.cpp
2012-11-17 06:14:09 +00:00
Kp
fb7ffe9a2d
Move similar/editor/objpage.c -> similar/editor/objpage.cpp
2012-11-17 06:14:09 +00:00
Kp
e6bd6ba28f
Move similar/editor/mine.c -> similar/editor/mine.cpp
2012-11-17 06:14:09 +00:00
Kp
0e3ff174ae
Move similar/editor/medwall.c -> similar/editor/medwall.cpp
2012-11-17 06:14:09 +00:00
Kp
02f3ec94d1
Move similar/editor/medsel.c -> similar/editor/medsel.cpp
2012-11-17 06:14:09 +00:00
Kp
d52967da2d
Move similar/editor/medrobot.c -> similar/editor/medrobot.cpp
2012-11-17 06:14:09 +00:00
Kp
8ec699d7f1
Move similar/editor/medmisc.c -> similar/editor/medmisc.cpp
2012-11-17 06:14:09 +00:00
Kp
8f665fb65e
Move similar/editor/meddraw.c -> similar/editor/meddraw.cpp
2012-11-17 06:14:09 +00:00
Kp
980621b9d4
Move similar/editor/med.c -> similar/editor/med.cpp
2012-11-17 06:14:09 +00:00
Kp
3f67882964
Move similar/editor/kview.c -> similar/editor/kview.cpp
2012-11-17 06:14:09 +00:00
Kp
e19c1a57f0
Move similar/editor/ktmap.c -> similar/editor/ktmap.cpp
2012-11-17 06:14:09 +00:00
Kp
8744e5f55e
Move similar/editor/ksegsize.c -> similar/editor/ksegsize.cpp
2012-11-17 06:14:09 +00:00
Kp
d15e10f5e0
Move similar/editor/ksegsel.c -> similar/editor/ksegsel.cpp
2012-11-17 06:14:09 +00:00
Kp
492096e3a5
Move similar/editor/ksegmove.c -> similar/editor/ksegmove.cpp
2012-11-17 06:14:09 +00:00
Kp
d0303aef06
Move similar/editor/kmine.c -> similar/editor/kmine.cpp
2012-11-17 06:14:09 +00:00
Kp
b0b2c85a44
Move similar/editor/khelp.c -> similar/editor/khelp.cpp
2012-11-17 06:14:09 +00:00
Kp
bd014e36f0
Move similar/editor/kgame.c -> similar/editor/kgame.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
48a88cc661
Move similar/editor/kcurve.c -> similar/editor/kcurve.cpp
2012-11-17 06:14:09 +00:00