diff options
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Data/PGSQL/PGSQLSimulationData.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLSimulationData.cs b/OpenSim/Data/PGSQL/PGSQLSimulationData.cs index 625120b..f4af40b 100755 --- a/OpenSim/Data/PGSQL/PGSQLSimulationData.cs +++ b/OpenSim/Data/PGSQL/PGSQLSimulationData.cs | |||
@@ -1789,6 +1789,7 @@ namespace OpenSim.Data.PGSQL | |||
1789 | prim.CollisionSoundVolume = Convert.ToSingle(primRow["CollisionSoundVolume"]); | 1789 | prim.CollisionSoundVolume = Convert.ToSingle(primRow["CollisionSoundVolume"]); |
1790 | 1790 | ||
1791 | prim.PassTouches = (bool)primRow["PassTouches"]; | 1791 | prim.PassTouches = (bool)primRow["PassTouches"]; |
1792 | prim.PassCollisions = (bool)primRow["PassCollisions"]; | ||
1792 | 1793 | ||
1793 | if (!(primRow["MediaURL"] is System.DBNull)) | 1794 | if (!(primRow["MediaURL"] is System.DBNull)) |
1794 | prim.MediaUrl = (string)primRow["MediaURL"]; | 1795 | prim.MediaUrl = (string)primRow["MediaURL"]; |
@@ -2212,7 +2213,7 @@ namespace OpenSim.Data.PGSQL | |||
2212 | parameters.Add(_Database.CreateParameter("CollisionSoundVolume", prim.CollisionSoundVolume)); | 2213 | parameters.Add(_Database.CreateParameter("CollisionSoundVolume", prim.CollisionSoundVolume)); |
2213 | 2214 | ||
2214 | parameters.Add(_Database.CreateParameter("PassTouches", (bool)prim.PassTouches)); | 2215 | parameters.Add(_Database.CreateParameter("PassTouches", (bool)prim.PassTouches)); |
2215 | parameters.Add(_Database.CreateParameter("PassCollisions", prim.PassCollisions)); | 2216 | parameters.Add(_Database.CreateParameter("PassCollisions", (bool)prim.PassCollisions)); |
2216 | 2217 | ||
2217 | 2218 | ||
2218 | if (prim.PassTouches) | 2219 | if (prim.PassTouches) |
@@ -2221,9 +2222,9 @@ namespace OpenSim.Data.PGSQL | |||
2221 | parameters.Add(_Database.CreateParameter("PassTouches", false)); | 2222 | parameters.Add(_Database.CreateParameter("PassTouches", false)); |
2222 | 2223 | ||
2223 | if (prim.PassCollisions) | 2224 | if (prim.PassCollisions) |
2224 | parameters.Add(_Database.CreateParameter("PassCollisions", 1)); | 2225 | parameters.Add(_Database.CreateParameter("PassCollisions", true)); |
2225 | else | 2226 | else |
2226 | parameters.Add(_Database.CreateParameter("PassCollisions", 0)); | 2227 | parameters.Add(_Database.CreateParameter("PassCollisions", false)); |
2227 | 2228 | ||
2228 | parameters.Add(_Database.CreateParameter("LinkNumber", prim.LinkNum)); | 2229 | parameters.Add(_Database.CreateParameter("LinkNumber", prim.LinkNum)); |
2229 | parameters.Add(_Database.CreateParameter("MediaURL", prim.MediaUrl)); | 2230 | parameters.Add(_Database.CreateParameter("MediaURL", prim.MediaUrl)); |