Notes |
|
(0012944)
|
Dusk
|
2015-07-15 15:00
|
|
|
|
(0015058)
|
Konda
|
2016-06-08 15:43
|
|
I tested this using WaTaKiD's windows build that was provided here:'https://zandronum.com/tracker/view.php?id=1420#c12949 [^]'
Couldn't test this offline, so I had to make a server using Doomseeker. It works fine if the server has no map rotation, but as soon as I try to host with a map rotation the server crashes right after startup:'http://i.imgur.com/wWkl194.png [^]'
If I keep the same host settings and change the executable to Zandronum 2.1.2, the server starts without crashing. |
|
|
(0021817)
|
DrinkyBird
|
2021-11-02 22:25
(edited on: 2021-11-03 00:27) |
|
Given that VOTEDEF won't be happening any time soon, since the source code is old and - most importantly - likely lost, I've implemented this using the existing vote system. An initial patch is attached, feedback appreciated before I turn this into an actual commit.
edit: I might have to change when the lump and map name is displayed in the vote message. G_GetExitMap behaves oddly clientside with map rotations as it always returns the next map defined in MAPINFO. If I remove the ( NETWORK_GetState( ) == NETSTATE_SERVER ) check in that function (as the client is aware of the map rotation in 3.1), it always returns the same map.
Also just realised that CALLVOTE_BeginVote doesn't check if G_GetExitMap and G_GetSecretExitMap returned NULL, so there's a possible bug...
Then again - this is already validated in callvote_CheckValidity - but I fixed it anyway.
|
|
|
|
Decided to ditch the idea of showing the map lump and name in the vote message, due to its weirdness with rotations...
edit: and I accidentally left a debug print in...
|
|
|
|
|