Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4154,3 +4154,5 @@ When setting a property like MORE to the a spell or skill defname, trying to rea

08-10-2026, Mulambo
- Changed: Equipped armor / weapon will also drop on ground when moving it while overweight, like other items (unless OF_OWNoDropCarriedItem is enabled).
WARNING! POTENTIALLY BREAKING CHANGE!
- Changed: `serv.map(location)` 3rd parameter is now always `z` position (was `map` when received 3 arguments or `z` when received 4 arguments).
11 changes: 7 additions & 4 deletions src/game/CServerConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1677,15 +1677,18 @@ bool CServerConfig::r_WriteVal( lpctstr ptcKey, CSString & sVal, CTextConsole *
if (IsDigit(ppVal[3][0]))
{
pt.m_map = (byte)(atoi(ppVal[3]));

if (!g_MapList.IsMapSupported(pt.m_map)) {
g_Log.EventError("Unsupported Map %d\n", pt.m_map);
return false;
}
}
FALLTHROUGH;

case 3:
if ( IsDigit(ppVal[2][0]) || (( iArgs == 4 ) && ( ppVal[2][0] == '-' )) )
if (IsDigit(ppVal[2][0]) || ppVal[2][0] == '-')
{
pt.m_z = (char)(( iArgs == 4 ) ? atoi(ppVal[2]) : 0);
if ( iArgs == 3 )
pt.m_map = (byte)(atoi(ppVal[2]));
pt.m_z = static_cast<char>(atoi(ppVal[2]));
}
FALLTHROUGH;

Expand Down
Loading