redeclipse / base

Base environment for Red Eclipse and associated source files.
https://redeclipse.net/
431 stars 88 forks source link

Update server.cpp to get map from vote starter #1572

Open nochinator opened 1 month ago

nochinator commented 1 month ago

Fixes #1012

Changes proposed in this request:

dc-redeclipse commented 1 month ago

Keep in mind that getmap requires the server to be open for no rotational maps voted by the players, means the allowed map list needed to be opened for it.

nochinator commented 1 month ago

If I understand what your saying, then this doesn't apply to the changes I've made. It will use normal behavior if the server already has the map (eg. map that is in rotation) These changes are to fix an issue when a player suggests (on a server that allows out of rotation maps) a map that the server does not have (eg. a edited map or custom map), then the server would get it from the player who was online the longest, rather than the player to start the vote as expected. If I've misunderstood you're comment then feel free to explain.