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