diff options
author | Melanie | 2012-01-28 03:12:56 +0100 |
---|---|---|
committer | Melanie | 2012-01-28 03:12:56 +0100 |
commit | 090164ff7a8edab3cad12728b67c35d9f50ddaab (patch) | |
tree | f04572249736085ca1c3ee1627d3ed32ad20ca3e /OpenSim/Data | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC_OLD-090164ff7a8edab3cad12728b67c35d9f50ddaab.zip opensim-SC_OLD-090164ff7a8edab3cad12728b67c35d9f50ddaab.tar.gz opensim-SC_OLD-090164ff7a8edab3cad12728b67c35d9f50ddaab.tar.bz2 opensim-SC_OLD-090164ff7a8edab3cad12728b67c35d9f50ddaab.tar.xz |
Completely disable NPC being sensed as agents, the abuse potential is too great
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLGenericTableHandler.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs index 754cf72..786b955 100644 --- a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs +++ b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs | |||
@@ -173,6 +173,11 @@ namespace OpenSim.Data.MySQL | |||
173 | int v = Convert.ToInt32(reader[name]); | 173 | int v = Convert.ToInt32(reader[name]); |
174 | m_Fields[name].SetValue(row, v); | 174 | m_Fields[name].SetValue(row, v); |
175 | } | 175 | } |
176 | else if (m_Fields[name].FieldType == typeof(uint)) | ||
177 | { | ||
178 | uint v = Convert.ToUInt32(reader[name]); | ||
179 | m_Fields[name].SetValue(row, v); | ||
180 | } | ||
176 | else | 181 | else |
177 | { | 182 | { |
178 | m_Fields[name].SetValue(row, reader[name]); | 183 | m_Fields[name].SetValue(row, reader[name]); |
@@ -294,4 +299,4 @@ namespace OpenSim.Data.MySQL | |||
294 | } | 299 | } |
295 | } | 300 | } |
296 | } | 301 | } |
297 | } \ No newline at end of file | 302 | } |