Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GlitterWorld Prime Mod
Release build
Commits
5fba5773
Commit
5fba5773
authored
Sep 16, 2018
by
Adam Leyshon
Browse files
Make sure we really only override if there's an override price set.
parent
1e3e524c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Glitterworld Prime/Utilities.cs
Glitterworld Prime/Utilities.cs
+2
-2
No files found.
Glitterworld Prime/Utilities.cs
View file @
5fba5773
...
...
@@ -294,8 +294,8 @@ namespace Glitterworld_Prime
// So the use prices defined by the database.
if
(
gwi
.
UseServerPrice
)
{
priceSell
=
gwi
.
SellPriceOverride
!=
0
?
gwi
.
SellPriceOverride
:
gwi
.
CurrentSellPrice
;
priceBuy
=
gwi
.
BuyPriceOverride
!=
0
?
gwi
.
BuyPriceOverride
:
gwi
.
CurrentBuyPrice
;
priceSell
=
gwi
.
SellPriceOverride
>
0
?
gwi
.
SellPriceOverride
:
gwi
.
CurrentSellPrice
;
priceBuy
=
gwi
.
BuyPriceOverride
>
0
?
gwi
.
BuyPriceOverride
:
gwi
.
CurrentBuyPrice
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment