entryway
Senior Member
Posts: 1261
Registered: 01-04 |
Don't forget to correct this bug:
[-] Boom bug: desyncs after using the key for switching to SSG directly with demo compatibility. This bug is present in current Eternity too.
code: *** D:\andre\prg\prboom-2.4.0\src\g_game.c Sun Apr 02 13:18:08 2006
--- D:\andre\prg\prboom-2.4.1\src\g_game.c Thu Apr 06 11:41:45 2006
*************** void G_BuildTiccmd(ticcmd_t* cmd)
*** 397,402 ****
--- 397,403 ----
gamekeydown[key_weapon6] && gamemode != shareware ? wp_plasma :
gamekeydown[key_weapon7] && gamemode != shareware ? wp_bfg :
gamekeydown[key_weapon8] ? wp_chainsaw :
+ !demo_compatibility && //e6y
gamekeydown[key_weapon9] && gamemode == commercial ? wp_supershotgun :
wp_nochange;
*** D:\andre\prg\prboom-2.4.0\src\p_user.c Sat Apr 01 13:15:58 2006
--- D:\andre\prg\prboom-2.4.1\src\p_user.c Thu Apr 06 11:40:10 2006
*************** void P_PlayerThink (player_t* player)
*** 343,348 ****
--- 343,349 ----
if (demo_compatibility)
{ // compatibility mode -- required for old demos -- killough
+ newweapon = (cmd->buttons & BT_WEAPONMASK_OLD)>>BT_WEAPONSHIFT;//e6y
if (newweapon == wp_fist && player->weaponowned[wp_chainsaw] &&
(player->readyweapon != wp_chainsaw ||
!player->powers[pw_strength]))
*** D:\andre\prg\prboom-2.4.0\src\d_event.h Sat Apr 01 13:15:58 2006
--- D:\andre\prg\prboom-2.4.1\src\d_event.h Thu Apr 06 11:40:49 2006
*************** typedef enum
*** 95,101 ****
BT_CHANGE = 4,
// The 4bit weapon mask and shift, convenience.
! //BT_WEAPONMASK = (8+16+32),
BT_WEAPONMASK = (8+16+32+64), // extended to pick up SSG // phares
BT_WEAPONSHIFT = 3,
--- 95,101 ----
BT_CHANGE = 4,
// The 4bit weapon mask and shift, convenience.
! BT_WEAPONMASK_OLD = (8+16+32), //e6y
BT_WEAPONMASK = (8+16+32+64), // extended to pick up SSG // phares
BT_WEAPONSHIFT = 3,
Last edited by entryway on 04-06-06 at 10:07
|