Commit graph

419 commits

Author SHA1 Message Date
Kp 3b75f65359 Move callsign buf onto change_playernum_to stack 2013-12-08 18:26:20 +00:00
Kp 50d14ea3b0 Move ending tmp buffer onto load_mission stack 2013-12-08 18:26:20 +00:00
Kp cebd52442b Move briefing tmp buffer onto load_mission stack 2013-12-08 18:26:20 +00:00
Kp af5ff85286 Move drive letter newmenu_item onto select_file_handler stack 2013-12-08 18:26:19 +00:00
Kp fddcfc8e99 Fix technical buffer overrun in drive letter selection
Padding makes this safe, but moving onto the stack is cleaner.
2013-12-08 18:26:19 +00:00
Kp d16dff3a16 Move kmatrix_screen onto kmatrix_view stack 2013-12-08 18:26:19 +00:00
Kp 4d877c5d67 Move ai_save_state *_rw onto stack 2013-12-08 18:26:19 +00:00
Kp 953a1888d7 Combine state pointer and count pointer 2013-12-08 00:12:45 +00:00
Kp a4f3c93247 Separate mutable and const kconfig data 2013-12-08 00:10:29 +00:00
Kp 3e4884f499 Consolidate ramped keyboard input
This also fixes a copy-paste bug in bank handling.
2013-12-07 21:34:53 +00:00
Kp 65ef441f20 Fix copy-paste bug from 98bf17c0 change of keyboard sensitivity
Using different sensitivities for left-slide versus right-slide looks
like a bug.  Fix it.
2013-12-07 21:32:03 +00:00
Kp 141ead1830 Move ramped controls into template structure 2013-12-07 21:13:37 +00:00
Kp 75c229c6bf Normalize con_printf newline usage 2013-12-07 21:13:37 +00:00
Kp 76765624a0 Simplify calculation of buddy ouch_str 2013-12-07 20:37:24 +00:00
Kp c3dd634cce Remove unused flag OF_HARMLESS 2013-12-07 18:41:35 +00:00
Kp a2cec5d71f Switch PHYSFSX_fgets to auto-sized variant where possible 2013-12-07 18:39:19 +00:00
Kp 7f5410cc8b Use lengthof instead of sizeof(A)/sizeof(A[0])
The latter form can accept pointers, but the template lengthof cannot.
2013-12-07 18:38:10 +00:00
Kp da70171db2 Mark various newmenu strings as const 2013-12-06 04:44:55 +00:00
Kp 70149044c1 Switch gr_printf(x,y,s) to gr_string(x,y,s) 2013-12-06 04:02:13 +00:00
Kp 70caa4e7b6 Fix array understep in guidebot flare code 2013-12-06 03:36:07 +00:00
Kp 320d22aae1 Move similar/main/collide.c -> similar/main/collide.cpp 2013-12-06 03:27:30 +00:00
Kp fcf216474b Move */main/collide.c -> similar/main/collide.c 2013-12-06 03:27:30 +00:00
Kp 517a8c1e37 Move similar/main/fireball.c -> similar/main/fireball.cpp 2013-12-06 03:27:30 +00:00
Kp 3620392f56 Remove unused nm_messagebox_fixedfont 2013-12-06 00:24:07 +00:00
Kp 2b88289d32 Make Hack_DblClick_MenuMode static 2013-12-06 00:24:07 +00:00
Kp 0726431030 Simplify preparing secret level text in MP game setup 2013-12-06 00:24:07 +00:00
Kp 1d3395cad1 Improve strlen usage 2013-12-06 00:24:07 +00:00
Kp 83843f32be Reduce copying in colored MP message 2013-12-06 00:24:07 +00:00
Kp 993d240131 Move feedback_result into multi_message_feedback 2013-12-06 00:24:07 +00:00
zico 7b0bda3302 Merge branch 'unification/master' of github.com:dxx-rebirth/dxx-rebirth into unification/master 2013-12-05 13:39:53 +01:00
Drakona 04d84ae61d Pass shot orientation with each weapon packet 2013-12-05 13:11:49 +01:00
Kp 0603067145 Make marker floats const 2013-12-05 00:09:37 +00:00
Kp 8ecfce07a1 Fix missing declarations when tracker is enabled
Drakona reports that tracker support does not build.  Fix it.
2013-12-04 23:43:45 +00:00
Kp 18aea17f9e Move */main/fireball.c -> similar/main/fireball.c 2013-12-02 00:21:31 +00:00
Kp 5fae3a5e28 Move similar/main/gamemine.c -> similar/main/gamemine.cpp 2013-12-01 23:55:50 +00:00
Kp 2ac98f7269 Move */main/gamemine.c -> similar/main/gamemine.c 2013-12-01 23:55:29 +00:00
Kp 6fda1ab889 Move similar/main/iff.c -> similar/main/iff.cpp 2013-12-01 23:32:56 +00:00
Kp f99c2b739a Move */iff/iff.c -> similar/main/iff.c 2013-12-01 23:24:51 +00:00
Kp 2d01f3a649 Optimize references to player ship 2013-12-01 22:53:25 +00:00
Kp 9db2badadb Move similar/main/bm.c -> similar/main/bm.cpp 2013-12-01 22:52:54 +00:00
Kp c258115b30 Move */main/bm.c -> similar/main/bm.c 2013-12-01 22:51:44 +00:00
Kp 74ac85076f Store joystick button text in one allocation 2013-12-01 22:42:47 +00:00
Kp 5354d05fbf Store joystick axis text in one allocation 2013-12-01 22:42:47 +00:00
Kp d3637e7524 Invert sense of SysUseNiceFPS 2013-12-01 22:37:21 +00:00
Kp abd503dd0d Record build environment in generated file 2013-12-01 00:56:24 +00:00
Kp 9fd6cfd59d Move __STDC_FORMAT_MACROS to SConstruct for PCH compatibility
__STDC_FORMAT_MACROS is needed to enable PRIi64.  __STDC_FORMAT_MACROS
must be set before including any headers, so when PCH is used, it must
be set on the command line.
2013-12-01 00:54:23 +00:00
Kp d9d79d3c9f Fix buffer overrun on malformed old levels 2013-12-01 00:52:45 +00:00
Kp fa496dc992 Avoid relocations for cheat codes 2013-11-28 02:16:05 +00:00
Kp 08efe14586 Remove unused Laser_player_fire parameter harmless_flag 2013-11-28 02:12:13 +00:00
Kp 43314e4e4e Change save_hoard_data::sounds from *[] to [][] 2013-11-28 02:09:35 +00:00
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