diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-13 14:07:25 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-15 19:46:00 -0700 |
commit | 60d9e17f3719eca2eb4531f9f01976b1e26c411b (patch) | |
tree | a0e5ba308526a6adb906c3bae1de239ccf8acafb /src/map | |
parent | 962552f17274dc066d17ab3d6c9495d77d681314 (diff) | |
download | tmwa-60d9e17f3719eca2eb4531f9f01976b1e26c411b.tar.gz tmwa-60d9e17f3719eca2eb4531f9f01976b1e26c411b.tar.bz2 tmwa-60d9e17f3719eca2eb4531f9f01976b1e26c411b.tar.xz tmwa-60d9e17f3719eca2eb4531f9f01976b1e26c411b.zip |
Use config for internal server userid/passwd instead of accounts.txt
This requires updated config files in the data repo.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/itemdb.cpp | 2 | ||||
-rw-r--r-- | src/map/pc.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/map/itemdb.cpp b/src/map/itemdb.cpp index c0d54c9..a8d8b55 100644 --- a/src/map/itemdb.cpp +++ b/src/map/itemdb.cpp @@ -84,7 +84,7 @@ struct item_data *itemdb_search(int nameid) id->value_buy = 10; id->value_sell = id->value_buy / 2; id->weight = 10; - id->sex = SEX::SERVER; + id->sex = SEX::NEUTRAL; id->elv = 0; if (nameid > 500 && nameid < 600) diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 8750910..4600aeb 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -592,7 +592,7 @@ int pc_isequip(dumb_ptr<map_session_data> sd, int n) if (item == NULL) return 0; - if (item->sex != SEX::SERVER && sd->status.sex != item->sex) + if (item->sex != SEX::NEUTRAL && sd->status.sex != item->sex) return 0; if (item->elv > 0 && sd->status.base_level < item->elv) return 0; @@ -2228,7 +2228,7 @@ int pc_isUseitem(dumb_ptr<map_session_data> sd, int n) if (itemdb_type(nameid) != ItemType::USE) return 0; - if (item->sex != SEX::SERVER && sd->status.sex != item->sex) + if (item->sex != SEX::NEUTRAL && sd->status.sex != item->sex) return 0; if (item->elv > 0 && sd->status.base_level < item->elv) return 0; |