Subversion Repositories eduke32

Rev

Go to most recent revision | Hide changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
8781 345d 15h ny00123 /source/sw/src/ SW: Revert the automapping changes from r5207. Using engine-side code
brought back in r7873, this should restore the behaviors of DOS v1.2.
 
/source/sw/src/cheats.cpp
/source/sw/src/game.cpp
8779 345d 15h ny00123 /source/sw/src/ Revert the change of call to FAF_DrawRooms into a conditional one,
as done in r8766, since this breaks status bar output in tiled
overhead map with Polymost. Do add comment about this for now.
 
/source/sw/src/draw.cpp
8767 348d 17h ny00123 /source/sw/src/ Remove unused FAF_DebugView variable from sw/src/brooms.cpp. The
corresponding variable in rooms.cpp is used if DEBUG is defined
to nonzero.
 
/source/sw/src/brooms.cpp
8766 348d 17h ny00123 /source/sw/src/ sw/src/draw.cpp: Don't draw rooms if textured overhead map is drawn
later. This also turns out to fix a Polymost-specific bug revealed
in SVN r8711. Further remove a call to PicInView which does nothing.
 
/source/sw/src/draw.cpp
8751 353d 22h ny00123 /source/sw/src/ SW: Make quitting by closing the window, now done via CON_Quit,
a bit more usable in multiplayer, hiding the engine's console.
 
/source/sw/src/console.cpp
8750 353d 22h ny00123 /source/sw/src/ SW: Modify MenuLevel and RunLevel by using CON_Quit,
toggling MultiPlayQuitFlag on instead of QuitFlag in
multiplayer games if a player tries to close the window.
Further update MNU_QuitCustom to use CON_Quit.
- In RunLevel, this fixes quit of game for all players.
- In MenuLevel, this leads to transmit of PACKET_TYPE_MENU_LEVEL_QUIT.
However, the work isn't complete, since the game isn't shut down
on the peers' sides, leading to possibly undesired side-effects.

Currently known issue:
- If the master closes the window, the scores won't be shown for
the master. Reason is that waitforeverybody will terminate the app.
 
/source/sw/src/game.cpp
/source/sw/src/game.h
/source/sw/src/menus.cpp
8749 353d 22h ny00123 /source/sw/src/ sw/src/game.cpp:StatScreen crash bug fix: For a given player p,
use p->TeamColor instead of User[p->PlayerSprite]->spal, since
it's possible the player left before the map was loaded.
 
/source/sw/src/game.cpp
8748 353d 22h ny00123 /source/sw/src/ SW: Add a few calls to handleevents around key press loops. Also check
quitevent in the game, and further call getpackets within StatScreen.
 
/source/sw/src/game.cpp
/source/sw/src/jnstub.cpp
8747 353d 22h ny00123 /source/sw/src/ SW: Make sure StatScreen is called around the same time for
all players after level change. This is done by adding calls
to getpackets within the BonusScreen and StatScreen while loops.

It is related to a change from the DOS versions of 1997. Basically,
dosendpackets immediately sends all packets via the commit driver under
DOS, while in the mmulti port in use here, sending might be postponed.

This was leading to a problem with the game entering waitforeverybody
before showing the stats. In particular, it initially attempted to send
a PACKET_TYPE_PLAYER_READY message, which could get postponed in the
manner described above. In case it received PACKET_TYPE_PLAYER_READY
messages from all other peers before the time arrived for sending
pending packets, though, waitforeverybody would return, eventually
leading to a call to StatScreen/BonusScreen, without sending the
pending message until the user in question continued. Other peers
would have to wait for the given player to confirm level change
before they could see their own stat screens.
 
/source/sw/src/game.cpp
8746 353d 22h ny00123 /source/sw/src/ sw/src/game.cpp:NewLevel: Wait for all peers when master player quits.  
/source/sw/src/game.cpp
8745 353d 22h ny00123 /source/sw/src/ sw/src/network.cpp:MyCommPlayerQuit: When master player decides to quit,
make sure all players quit the game. Don't internally change the list
of players, just prepare to quit.
 
/source/sw/src/network.cpp
8744 353d 22h ny00123 /source/sw/src/ sw/src/game.cpp:getinput: Make sure slave actually quits the game  
/source/sw/src/game.cpp
8743 353d 22h ny00123 /source/sw/src/ SW: Fix a bug in getpackets, making SW's Master-Slave code usable,
including 3+ players sessions.
 
/source/sw/src/game.cpp
/source/sw/src/network.cpp
8708 355d 12h terminx /source/ Tweaks to engine compatibility stuff  
/source/build/include/build.h
/source/build/src/clip.cpp
/source/build/src/common.cpp
/source/build/src/engine.cpp
/source/build/src/engine_priv.h
/source/sw/src/game.cpp
8704 357d 13h ny00123 /source/sw/src/ sw/src/game.cpp: Fix crash following an abort of InitGame while
processing multiplayer params or waiting for players. It's been
decided that Control won't call TerminateGame in this case,
one implication being that voidsw.cfg is not updated.
 
/source/sw/src/game.cpp
8703 357d 13h ny00123 /source/sw/src/ SW: Do limit Master/Slave support to 2-players sessions.
Thanks to LittleTijn for testing and inspecting.
 
/source/sw/src/game.cpp
8701 357d 13h ny00123 /source/sw/src/ sw/src/game.cpp: Update processing of multiplayer-related arguments,
mostly from JFSW commits 7a95dee807c735de6588372e268af7a5c7cdc533
and 6137b48d6d432c34d94d08fea527b89539cc3adb. In particular,
this makes Master/Slave usable for 2-player sessions, with SW's
networking code behaving as if these were actually Peer-2-Peer sessions.

Thanks to JonoF for his work on the support.
 
/source/sw/src/game.cpp
8700 359d 14h ny00123 /source/sw/src/ sw/src/draw.cpp:ResizeView: Make map zooming less dependent
on the frame rate
 
/source/sw/src/draw.cpp
8699 359d 23h ny00123 /source/sw/src/ sw/src/menus.cpp: Remove nonexisting MNU_ClearDialog function prototype  
/source/sw/src/menus.cpp
8698 359d 23h ny00123 /source/sw/src/ sw/src/weapon.cpp: Comment out unused MissileSeek and ComboMissileSeek
params, but leave them for documentation. Note that currently, the
only use of ComboMissileSeek is in the saveable_weapon_code array.
 
/source/sw/src/weapon.cpp
8697 359d 23h ny00123 /source/sw/src/ SW: Comment out function parameters accessed only in commented out code  
/source/sw/src/jplayer.cpp
/source/sw/src/sector.cpp
/source/sw/src/weapon.cpp
8696 359d 23h ny00123 /source/sw/src/ SW: Mark function parameters as unused in cases we can't easily change
the functions' signatures (often due to being used as callbacks/hooks)
 
/source/sw/src/game.cpp
/source/sw/src/jnstub.cpp
/source/sw/src/menus.cpp
/source/sw/src/panel.cpp
/source/sw/src/text.cpp
8695 359d 23h ny00123 /source/sw/src/ Take care of unused parameters in sw/src/menus.cpp:MNU_DoMenu.
Note that the passed type is always ct_mainmenu.
 
/source/sw/src/menus.cpp
/source/sw/src/menus.h
8694 359d 23h ny00123 /source/sw/src/ SW: Remove a bunch of unused function parameters  
/source/sw/src/brooms.cpp
/source/sw/src/draw.cpp
/source/sw/src/game.cpp
/source/sw/src/game.h
/source/sw/src/inv.cpp
/source/sw/src/jplayer.cpp
/source/sw/src/network.cpp
/source/sw/src/panel.cpp
/source/sw/src/panel.h
/source/sw/src/player.cpp
/source/sw/src/rooms.cpp
/source/sw/src/save.cpp
/source/sw/src/sector.cpp
/source/sw/src/sector.h
/source/sw/src/spike.cpp
/source/sw/src/sprite.cpp
/source/sw/src/text.cpp
/source/sw/src/text.h
/source/sw/src/track.cpp
/source/sw/src/track.h
/source/sw/src/weapon.cpp
/source/sw/src/weapon.h
8693 359d 23h ny00123 /source/sw/src/ sw/src/weapon.cpp: Remove conditional set of unused variable hsp
in InitMineShrap, as well as unused variable sp in TestDontStick
 
/source/sw/src/weapon.cpp
8692 359d 23h ny00123 /source/sw/src/ sw/src/weapon.cpp: Insert unused SHRAP structs into #if 0 blocks  
/source/sw/src/weapon.cpp
8691 359d 23h ny00123 /source/ startgtk (Duke3D, SW, Build Editor): Use nullptr instead
of NULL for ending arguments list in gtk function calls. Fixes
"missing sentinel in function call" warning with a specific GCC version.
 
/source/build/src/startgtk.editor.cpp
/source/duke3d/src/startgtk.game.cpp
/source/sw/src/startgtk.game.cpp
8690 360d 21h ny00123 /source/sw/src/ sw/src/player.cpp: Remove unused globals related to mouse status  
/source/sw/src/player.cpp
8689 360d 21h ny00123 /source/sw/src/ sw/src/player.cpp: A bit more complicated cases of unused vars  
/source/sw/src/player.cpp
8688 360d 21h ny00123 /source/sw/src/ SW: Handle cases in which the result of an expression
with (possible) side-effects is written to an unused var.
 
/source/sw/src/console.cpp
/source/sw/src/jnstub.cpp
/source/sw/src/miscactr.cpp
/source/sw/src/player.cpp
/source/sw/src/save.cpp
/source/sw/src/sector.cpp
/source/sw/src/sounds.cpp
/source/sw/src/swconfig.cpp
8687 360d 21h ny00123 /source/sw/src/ sw/src/inv.cpp: Move unused global pal arrays to #if 0 block  
/source/sw/src/inv.cpp
8686 360d 21h ny00123 /source/sw/src/ SW: Comment out unused vars, which would become
used if previously commented out code was uncommented
(including a few instances of uninitialized var reads).
 
/source/sw/src/ai.cpp
/source/sw/src/border.cpp
/source/sw/src/break.cpp
/source/sw/src/brooms.cpp
/source/sw/src/cheats.cpp
/source/sw/src/coolie.cpp
/source/sw/src/draw.cpp
/source/sw/src/game.cpp
/source/sw/src/inv.cpp
/source/sw/src/jnstub.cpp
/source/sw/src/jsector.cpp
/source/sw/src/jweapon.cpp
/source/sw/src/menus.cpp
/source/sw/src/morph.cpp
/source/sw/src/network.cpp
/source/sw/src/panel.cpp
/source/sw/src/player.cpp
/source/sw/src/rts.cpp
/source/sw/src/sector.cpp
/source/sw/src/setup.cpp
/source/sw/src/sounds.cpp
/source/sw/src/sprite.cpp
/source/sw/src/sync.cpp
/source/sw/src/track.cpp
/source/sw/src/weapon.cpp
8685 360d 21h ny00123 /source/sw/src/ SW: Remove a ton of unused vars  
/source/sw/src/actor.cpp
/source/sw/src/ai.cpp
/source/sw/src/anim.cpp
/source/sw/src/border.cpp
/source/sw/src/break.cpp
/source/sw/src/brooms.cpp
/source/sw/src/bunny.cpp
/source/sw/src/cheats.cpp
/source/sw/src/config.cpp
/source/sw/src/console.cpp
/source/sw/src/coolg.cpp
/source/sw/src/coolie.cpp
/source/sw/src/demo.cpp
/source/sw/src/draw.cpp
/source/sw/src/eel.cpp
/source/sw/src/game.cpp
/source/sw/src/girlninj.cpp
/source/sw/src/goro.cpp
/source/sw/src/hornet.cpp
/source/sw/src/inv.cpp
/source/sw/src/jbhlp.cpp
/source/sw/src/jnstub.cpp
/source/sw/src/jplayer.cpp
/source/sw/src/jsector.cpp
/source/sw/src/jweapon.cpp
/source/sw/src/lava.cpp
/source/sw/src/light.cpp
/source/sw/src/mclip.cpp
/source/sw/src/menus.cpp
/source/sw/src/miscactr.cpp
/source/sw/src/network.cpp
/source/sw/src/ninja.cpp
/source/sw/src/panel.cpp
/source/sw/src/player.cpp
/source/sw/src/predict.cpp
/source/sw/src/quake.cpp
/source/sw/src/ripper.cpp
/source/sw/src/ripper2.cpp
/source/sw/src/rooms.cpp
/source/sw/src/rotator.cpp
/source/sw/src/save.cpp
/source/sw/src/scrip2.cpp
/source/sw/src/sector.cpp
/source/sw/src/serp.cpp
/source/sw/src/setup.cpp
/source/sw/src/skel.cpp
/source/sw/src/skull.cpp
/source/sw/src/slidor.cpp
/source/sw/src/sounds.cpp
/source/sw/src/spike.cpp
/source/sw/src/sprite.cpp
/source/sw/src/sumo.cpp
/source/sw/src/swconfig.cpp
/source/sw/src/sync.cpp
/source/sw/src/text.cpp
/source/sw/src/track.cpp
/source/sw/src/vator.cpp
/source/sw/src/weapon.cpp
/source/sw/src/zombie.cpp
8678 362d 14h ny00123 /source/sw/src/ sw/src/network.cpp:getpackets: Fix trimming of message in
packet of type PACKET_TYPE_MESSAGE. This reverts a tiny portion
of JFShadowWarrior commit 6b01a4703d55ae3e131d8c11903ff2dcd78c15d8.
 
/source/sw/src/network.cpp
8677 362d 14h ny00123 /source/sw/src/ sw/src/network.*: Sync the player's MouseAimingOn field. This is required for the slope tilting check in player.cpp:PlayerAutoLook, introduced in JFBuild commit 1915f408962b4d9c814f64affda634d28582e25e and updated in commit ef9aea53aced8fd90c701d0c8a9a927a23dd0a40.  
/source/sw/src/network.cpp
/source/sw/src/network.h
8667 363d 14h ny00123 /source/sw/src/ sw/src/game.cpp: Use initsingleplayers instead of initmultiplayers  
/source/sw/src/game.cpp
8647 367d 6h hendricks266 /source/ Update credits  
/source/duke3d/src/menus.cpp
/source/sw/src/menus.cpp
8629 385d 7h hendricks266 /source/sw/src/ SW: Activate engine compatibility  
/source/sw/src/game.cpp
8627 385d 7h hendricks266 /source/sw/src/ SW: Don't restart the music when loading a save playing the same track  
/source/sw/src/game.cpp
/source/sw/src/save.cpp
8626 385d 7h hendricks266 /source/sw/src/ SW: Add handleevents to end credits

From JFSW commit 0c651743f8371fade0231e9c3206ca25e6ae5269
 
/source/sw/src/game.cpp