|
|
|
|
@ -34,6 +34,7 @@
|
|
|
|
|
#include "movie.h" |
|
|
|
|
#include "multi.h" |
|
|
|
|
#include "nthread.h" |
|
|
|
|
#include "objects.h" |
|
|
|
|
#include "options.h" |
|
|
|
|
#include "pfile.h" |
|
|
|
|
#include "plrmsg.h" |
|
|
|
|
@ -501,6 +502,7 @@ static void SaveOptions()
|
|
|
|
|
setIniInt("Game", "Auto Equip Jewelry", sgOptions.Gameplay.bAutoEquipJewelry); |
|
|
|
|
setIniInt("Game", "Randomize Quests", sgOptions.Gameplay.bRandomizeQuests); |
|
|
|
|
setIniInt("Game", "Show Monster Type", sgOptions.Gameplay.bShowMonsterType); |
|
|
|
|
setIniInt("Game", "Disable Crippling Shrines", sgOptions.Gameplay.bDisableCripplingShrines); |
|
|
|
|
|
|
|
|
|
setIniValue("Network", "Bind Address", sgOptions.Network.szBindAddress); |
|
|
|
|
setIniInt("Network", "Port", sgOptions.Network.nPort); |
|
|
|
|
@ -575,6 +577,7 @@ static void LoadOptions()
|
|
|
|
|
sgOptions.Gameplay.bAutoEquipJewelry = getIniBool("Game", "Auto Equip Jewelry", false); |
|
|
|
|
sgOptions.Gameplay.bRandomizeQuests = getIniBool("Game", "Randomize Quests", true); |
|
|
|
|
sgOptions.Gameplay.bShowMonsterType = getIniBool("Game", "Show Monster Type", false); |
|
|
|
|
sgOptions.Gameplay.bDisableCripplingShrines = getIniBool("Game", "Disable Crippling Shrines", false); |
|
|
|
|
|
|
|
|
|
getIniValue("Network", "Bind Address", sgOptions.Network.szBindAddress, sizeof(sgOptions.Network.szBindAddress), "0.0.0.0"); |
|
|
|
|
sgOptions.Network.nPort = getIniInt("Network", "Port", 6112); |
|
|
|
|
@ -718,7 +721,7 @@ static bool LeftMouseCmd(bool bShift)
|
|
|
|
|
bNear = abs(plr[myplr]._px - cursmx) < 2 && abs(plr[myplr]._py - cursmy) < 2; |
|
|
|
|
if (pcursitem != -1 && pcurs == CURSOR_HAND && !bShift) { |
|
|
|
|
NetSendCmdLocParam1(true, invflag ? CMD_GOTOGETITEM : CMD_GOTOAGETITEM, cursmx, cursmy, pcursitem); |
|
|
|
|
} else if (pcursobj != -1 && (!bShift || (bNear && object[pcursobj]._oBreak == 1))) { |
|
|
|
|
} else if (pcursobj != -1 && (!objectIsDisabled(pcursobj)) && (!bShift || (bNear && object[pcursobj]._oBreak == 1))) { |
|
|
|
|
NetSendCmdLocParam1(true, pcurs == CURSOR_DISARM ? CMD_DISARMXY : CMD_OPOBJXY, cursmx, cursmy, pcursobj); |
|
|
|
|
} else if (plr[myplr]._pwtype == WT_RANGED) { |
|
|
|
|
if (bShift) { |
|
|
|
|
|