Commit graph

419 commits

Author SHA1 Message Date
Kp 3e2c0b5e1b Switch multi_allow_powerup_text to [][] from *[] 2013-11-28 02:09:30 +00:00
Kp 5d1769cd2c Switch RankStrings to be [][14] instead of *[]
Saves 10 .rel.ro entries and 6 bytes on x86 / 46 bytes on x64.
2013-11-28 02:08:54 +00:00
Kp e535de5181 Move terrain lighting data onto stack 2013-11-28 00:27:43 +00:00
Kp 2ca4c7ed3e Make super_boss_gate_type_list const 2013-11-28 00:27:43 +00:00
Kp 2de6e5069b Make Obj_light_xlate const 2013-11-28 00:27:43 +00:00
Kp 541961a2f7 Make Object_type_names const 2013-11-28 00:27:43 +00:00
Kp f92195e557 Make render translation tables static const 2013-11-28 00:27:43 +00:00
Kp 68732756e8 Make Wall_names const 2013-11-28 00:27:43 +00:00
Kp 0bcf492b56 Make system_name [][] from *[] 2013-11-28 00:27:42 +00:00
Kp 182256c2f4 Make Adam_level_names [][] from *[] 2013-11-28 00:27:42 +00:00
Kp 8bd0ceb245 Make DemoExtraMessage from *[] to [][] 2013-11-28 00:27:42 +00:00
Kp 2665abfb4b Only write player file if new highest level is higher than old 2013-11-24 23:50:43 +00:00
Kp c84ef6ac84 Add whitespace to fix rainbow parentheses 2013-11-24 23:50:43 +00:00
Kp a4855dbdb3 Use stricter check for robots in set_player_awareness_all
Rather than tracking down every path through which an object can have
its type set to OBJ_NONE without clearing its control_type, add an
explicit check that the type is OBJ_ROBOT.
2013-11-24 23:11:30 +00:00
Kp 5388520198 Fix array understep in automap 2013-11-24 23:08:32 +00:00
Kp c70c6c98b3 Remove obsolete segment::degenerated flag
Shrinks Segments[] by 36000 bytes.
2013-11-24 23:08:32 +00:00
Kp ee5fbe1467 Use helper to diminish palette color toward zero 2013-11-24 23:08:32 +00:00
Kp e30f548d60 Invert sense of DbgAltTexMerge 2013-11-24 22:57:36 +00:00
Kp 761795e4c8 Invert sense of DbgBigPig 2013-11-24 22:57:36 +00:00
Kp 3b49e65f95 Invert sense of DbgUseDoubleBuffer 2013-11-24 22:57:36 +00:00
Kp bbb9214e0e Invert sense of hires/lowres options 2013-11-24 22:57:36 +00:00
Kp 9efbba6c94 Fix D2 editor loading RDL files 2013-11-24 22:53:30 +00:00
Kp ba1bbce571 Move similar/main/fuelcen.c -> similar/main/fuelcen.cpp 2013-11-24 22:51:56 +00:00
Kp 2d920e5f7b Move similar/main/gameseq.c -> similar/main/gameseq.cpp 2013-11-24 22:49:52 +00:00
Kp aa05263b29 Move */main/gameseq.c -> similar/main/gameseq.c 2013-11-24 22:47:19 +00:00
Kp 53149e6bcd Move similar/main/ai.c -> similar/main/ai.cpp 2013-11-23 22:47:45 +00:00
Kp 47a4bb1ff1 Move */main/ai.c -> similar/main/ai.c 2013-11-23 22:47:45 +00:00
Kp 6be79cadce Unify ai_follow_path 2013-11-23 22:41:01 +00:00
Kp f4cbfca8e2 Use helper to test for thief flag 2013-11-18 04:51:33 +00:00
Kp b326bb832b Use helper to clamp kconfig values 2013-11-18 04:51:06 +00:00
Kp 810ccd037d Sanity check axis reads 2013-11-18 04:51:06 +00:00
Kp 4ba8444fc8 Use helper to read axis fields 2013-11-18 04:51:06 +00:00
Kp 6f839dedae Use helper to set exclusive binding 2013-11-18 04:51:06 +00:00
Kp 5266426171 Also switch kc_menu to references 2013-11-18 00:56:20 +00:00
Kp 975acb97fe Remove pointer subtraction in kc_change_* 2013-11-18 00:56:20 +00:00
Kp 29826db21c Always keep kc_* table relations const 2013-11-18 00:54:59 +00:00
Kp 6becfdacca Remove NUM_DXX_REBIRTH_CONTROLS 2013-11-18 00:54:59 +00:00
Kp a842b31a20 Remove NUM_MOUSE_CONTROLS 2013-11-18 00:54:59 +00:00
Kp 04b0bd892d Remove NUM_JOYSTICK_CONTROLS 2013-11-18 00:54:59 +00:00
Kp bf7063080e Remove NUM_KEY_CONTROLS 2013-11-18 00:54:59 +00:00
Kp c3d328ea5c Use helper to test for guidebot flag 2013-11-16 23:24:12 +00:00
Kp 6586d474f9 Only rebuild tables on request 2013-11-16 23:24:12 +00:00
Kp fc1e00dae6 Pre-compute labelx+inputx 2013-11-16 23:24:12 +00:00
Kp c959915fba Remove always-true test in kc_drawitem 2013-11-16 23:24:12 +00:00
Kp d0514455b3 Use automap_state instead of automap_count 2013-11-16 23:24:12 +00:00
Kp 321e240744 Use rear_view_state instead of rear_view_count 2013-11-16 23:24:12 +00:00
Kp cda0b60687 Remove unused fire_secondary_count 2013-11-16 23:24:12 +00:00
Kp 494c380abb Switch automap to use fire_primary_state
Counting is unnecessary here.
2013-11-16 23:24:12 +00:00
Kp d035fb258a Remove unused kc_item->id 2013-11-16 04:28:39 +00:00
Kp 9a6414ceca Combine hitbox bounds testing 2013-11-16 04:28:39 +00:00
Kp b7f1a71840 Combine item text formatting 2013-11-16 04:28:39 +00:00
Kp beac9ec079 Use helper to read a player from PHYSFS_file 2013-11-10 23:01:40 +00:00
Kp c0e24f7c75 Add helper to write a player to a PHYSFS_file 2013-11-10 23:00:50 +00:00
Kp 5ff051cf4e Move */main/fuelcen.c -> similar/main/fuelcen.c 2013-11-10 22:56:12 +00:00
Kp bcd6ea5eed Move similar/main/piggy.c -> similar/main/piggy.cpp 2013-11-10 19:08:12 +00:00
Kp 4ef3937d35 Move */main/piggy.c -> similar/main/piggy.c 2013-11-10 19:08:12 +00:00
Kp 9c9f0a070a Reduce differences in name_frame 2013-11-09 18:06:47 +00:00
Kp c3288abd89 Remove global 'flydata' 2013-11-09 18:06:47 +00:00
Kp cbda2231a6 Move similar/main/endlevel.c -> similar/main/endlevel.cpp 2013-11-09 17:46:41 +00:00
Kp ea2022bb01 Move */main/endlevel.c -> similar/main/endlevel.c 2013-11-09 17:46:41 +00:00
Kp 4469ff36c0 Manage movie subtitles automatically 2013-11-09 17:45:21 +00:00
Kp c9692eadd1 Clamp automap viewing distance 2013-11-09 05:07:02 +00:00
Kp f11e787ef3 Use helper for bounding check 2013-11-08 03:14:44 +00:00
Kp ed8484f096 Remove unnecessary packing on vms_vector 2013-11-08 03:14:43 +00:00
Kp 6fc8d110f3 Only give secondaries that exist 2013-11-02 04:25:33 +00:00
Kp 58958e091b Only give primaries that exist 2013-11-02 04:24:14 +00:00
Kp 2714679284 Mark private functions static 2013-11-02 04:23:55 +00:00
Kp babac8144a Fix off-by-one in teleport validation 2013-11-01 23:17:22 +00:00
Kp 65e9d0caa7 Avoid double formatting when printing marker 2013-11-01 02:58:05 +00:00
Kp 65a1f86456 Mark aipath test functions as used 2013-10-29 03:24:43 +00:00
Kp 645c312989 Mark game kill_* debugger functions as used 2013-10-29 03:24:43 +00:00
Kp 4cad87115d Guard sometimes used function render_segment 2013-10-29 03:24:43 +00:00
Kp 58ac06a8ca Remove unused function kmatrix_phallic 2013-10-29 03:24:43 +00:00
Kp 95c1d784ef Remove unused function find_connected_distance_segments 2013-10-29 03:24:43 +00:00
Kp fa987b72e1 Remove unused function do_load_save_levels 2013-10-29 03:24:43 +00:00
Kp f2bf4de884 Make functions conditionally static where possible 2013-10-29 03:24:42 +00:00
Kp 02bba815ee Remove unused digi_sound_debug 2013-10-29 03:24:42 +00:00
Kp ac174b5efe Remove unused gamefont_curfontname 2013-10-29 03:24:42 +00:00
Kp c655e4159a Mark set_robot_state used for debuggers 2013-10-29 03:24:42 +00:00
Kp 0794613705 Only define multi_do_ranking in Descent II 2013-10-29 03:24:42 +00:00
Kp 68e936b809 Disable Parallax AI path debug printing 2013-10-29 03:24:41 +00:00
Kp 4fcf34fdbb Make create_weapon_object static 2013-10-28 04:16:45 +00:00
Kp 19fef0a51d Simplify full_palette_save calls 2013-10-28 04:16:44 +00:00
Kp fdd2dd65c7 Use underlying type for state_game_id
This avoids the need for a header to declare it.
2013-10-26 03:50:27 +00:00
Kp a6b1bd58a2 Use MALLOC consistently 2013-10-26 03:50:27 +00:00
Kp 894570b14d Move similar/main/weapon.c -> similar/main/weapon.cpp 2012-11-11 22:12:51 +00:00
Kp 6224fb3cef Move similar/main/wall.c -> similar/main/wall.cpp 2012-11-11 22:12:51 +00:00
Kp 5c274d9b0f Move similar/main/vers_id.c -> similar/main/vers_id.cpp 2012-11-11 22:12:51 +00:00
Kp 22868b959a Move similar/main/vclip.c -> similar/main/vclip.cpp 2012-11-11 22:12:51 +00:00
Kp c21da7e9df Move similar/main/titles.c -> similar/main/titles.cpp 2012-11-11 22:12:51 +00:00
Kp 929c1eb813 Move similar/main/text.c -> similar/main/text.cpp 2012-11-11 22:12:51 +00:00
Kp 91da43ffa2 Move similar/main/texmerge.c -> similar/main/texmerge.cpp 2012-11-11 22:12:51 +00:00
Kp 4fb7db8a7c Move similar/main/terrain.c -> similar/main/terrain.cpp 2012-11-11 22:12:51 +00:00
Kp ea1566b247 Move similar/main/switch.c -> similar/main/switch.cpp 2012-11-11 22:12:51 +00:00
Kp eaea6bd15b Move similar/main/state.c -> similar/main/state.cpp 2012-11-11 22:12:51 +00:00
Kp 6a7bd1527a Move similar/main/songs.c -> similar/main/songs.cpp 2012-11-11 22:12:51 +00:00
Kp eb575861b8 Move similar/main/slew.c -> similar/main/slew.cpp 2012-11-11 22:12:51 +00:00
Kp aaf5153865 Move similar/main/scores.c -> similar/main/scores.cpp 2012-11-11 22:12:51 +00:00
Kp 20bec34654 Move similar/main/robot.c -> similar/main/robot.cpp 2012-11-11 22:12:51 +00:00
Kp e996814210 Move similar/main/render.c -> similar/main/render.cpp 2012-11-11 22:12:51 +00:00
Kp d274115641 Move similar/main/powerup.c -> similar/main/powerup.cpp 2012-11-11 22:12:51 +00:00
Kp 853caa429b Move similar/main/polyobj.c -> similar/main/polyobj.cpp 2012-11-11 22:12:51 +00:00
Kp 23681b5143 Move similar/main/playsave.c -> similar/main/playsave.cpp 2012-11-11 22:12:51 +00:00
Kp 00af0206ea Move similar/main/player.c -> similar/main/player.cpp 2012-11-11 22:12:51 +00:00
Kp dcb2792aac Move similar/main/physics.c -> similar/main/physics.cpp 2012-11-11 22:12:51 +00:00
Kp 74ec056b43 Move similar/main/paging.c -> similar/main/paging.cpp 2012-11-11 22:12:51 +00:00
Kp 7f334859ae Move similar/main/object.c -> similar/main/object.cpp 2012-11-11 22:12:51 +00:00
Kp 9b9b373b71 Move similar/main/newmenu.c -> similar/main/newmenu.cpp 2012-11-11 22:12:51 +00:00
Kp 636e78fd22 Move similar/main/newdemo.c -> similar/main/newdemo.cpp 2012-11-11 22:12:51 +00:00
Kp 74db12f880 Move similar/main/net_udp.c -> similar/main/net_udp.cpp 2012-11-11 22:12:51 +00:00
Kp b14390c021 Reorder copy_file to calm Visual Studio warning
Visual Studio code flow analysis fails to recognize that buf is always
assigned at least once.  Reorder the logic to encourage it to recognize
this.
2013-01-20 22:26:33 +00:00
Kp c0552c0dfa Add realloc casts 2013-10-06 03:05:57 +00:00
Skywing 8f112d669c sendto and recvfrom take a char* and not void* on Win32. 2013-10-20 22:49:57 +00:00
Kp 375ac66b2f Move similar/main/multibot.c -> similar/main/multibot.cpp 2013-10-20 22:49:12 +00:00
Kp 3855291457 Move similar/main/multi.c -> similar/main/multi.cpp 2013-10-20 22:49:12 +00:00
Kp a5f95cab76 Move similar/main/morph.c -> similar/main/morph.cpp 2013-10-20 22:49:12 +00:00
Kp 3693743d41 Move similar/main/mission.c -> similar/main/mission.cpp 2013-10-20 22:49:12 +00:00
Kp 9fb22a8be0 Move similar/main/mglobal.c -> similar/main/mglobal.cpp 2013-10-20 22:49:12 +00:00
Kp e663767201 Move similar/main/menu.c -> similar/main/menu.cpp 2013-10-20 22:49:12 +00:00
Kp d3ddb816f1 Move similar/main/lighting.c -> similar/main/lighting.cpp 2013-10-20 22:49:11 +00:00
Kp 7bd8ab3af1 Move similar/main/laser.c -> similar/main/laser.cpp 2013-10-20 22:49:11 +00:00
Kp cf2c153c77 Move similar/main/kmatrix.c -> similar/main/kmatrix.cpp 2013-10-20 22:49:11 +00:00
Kp ba7950d3d5 Move similar/main/kconfig.c -> similar/main/kconfig.cpp 2013-10-20 22:49:11 +00:00
Kp 5b0c4b10ac Use accessor for most get/set object->id accesses 2013-10-20 22:49:09 +00:00
Kp 3756a27518 Use narrowly scoped loop variables in kconfig 2013-10-19 17:06:17 +00:00
Kp 852a4c7f4d Use enum weapon_type_t in more places 2013-10-19 17:06:16 +00:00
Kp e436a5dc43 Use MALLOC for hoard reading 2013-10-19 17:03:11 +00:00
Kp 9f87b72a7d Remove unused SUPER_LASER_INDEX handling 2013-10-19 17:03:11 +00:00
Kp aaa720d4d7 Fix const-ness in load_text 2013-10-19 17:03:11 +00:00
Kp 643fdbc08b Fix const-ness in songs_play_file 2013-10-19 17:03:11 +00:00
Kp a36c7dee08 Remove unused argument to slew_reset_orient 2013-10-19 17:03:11 +00:00
Kp b84f99faf9 Use purpose_type consistently 2013-10-19 17:03:11 +00:00
Kp 6ad5761c66 Use CALLOC in listbox_draw 2013-10-19 17:03:11 +00:00
Kp a9b21cbcee Use enum mle_loc consistently 2013-10-19 17:03:11 +00:00
Kp 743fe4cf0e Fix Descent display of primary weapon names 2013-10-09 01:54:12 +00:00
Kp 2bcc7bb371 Only create lasers for known weapon types 2013-10-09 01:54:12 +00:00
Kp 3adfb546af Mark some kconfig lengths unsigned 2013-10-09 01:54:12 +00:00
Kp a8050a462f Only fire valid level lasers 2013-10-09 01:54:12 +00:00
Kp 553dc95b05 Use helper to check for laser type weapons 2013-10-09 01:54:12 +00:00
Kp cb0aa24210 Remove useless rewrite of kconfig title
Rewriting the title needlessly violates const correctness, and no caller
seems to actually pass the rewritten characters.
2013-10-08 02:38:22 +00:00
Kp 798774294f Use weapon_type_t for Laser_create_new* weapon type 2013-10-08 02:10:18 +00:00
Kp bd46b7ea73 Make CONTROLCEN_WEAPON_NUM a weapon_type_t member 2013-10-08 02:07:39 +00:00
Kp 3caf739dc8 Simplify kconfig height calculation 2013-10-08 02:02:26 +00:00
Kp 00f0fddabc Centralize handling of SysUsePlayersDir 2013-10-06 21:04:29 +00:00
Kp 740a190835 Move */main/playsave.c -> similar/main/playsave.c 2013-10-06 17:56:37 +00:00
Kp 15d93a8253 Move similar/main/dumpmine.c -> similar/main/dumpmine.cpp 2013-10-06 16:58:50 +00:00
Kp f92e234054 Move */main/dumpmine.c -> similar/main/dumpmine.c 2013-10-06 16:58:49 +00:00
Kp 42893d8618 Store cheat strings inline 2013-10-05 21:35:58 +00:00
Kp 53714438ca Use MALLOC for state screenshot 2013-10-05 21:35:58 +00:00
Kp 3d3116d09f Use MALLOC for load_text addition 2013-10-05 21:35:58 +00:00