Clean up control_set_gold_curs
This commit is contained in:
parent
307c1196f3
commit
e0617c5fad
1 changed files with 6 additions and 7 deletions
|
|
@ -2660,14 +2660,13 @@ void control_remove_gold(int pnum, int gold_index)
|
|||
|
||||
void control_set_gold_curs(int pnum)
|
||||
{
|
||||
if (plr[pnum].HoldItem._ivalue >= 2500) {
|
||||
if (plr[pnum].HoldItem._ivalue >= 2500)
|
||||
plr[pnum].HoldItem._iCurs = ICURS_GOLD_LARGE;
|
||||
} else {
|
||||
if (plr[pnum].HoldItem._ivalue <= 1000)
|
||||
plr[pnum].HoldItem._iCurs = ICURS_GOLD_SMALL;
|
||||
else
|
||||
plr[pnum].HoldItem._iCurs = ICURS_GOLD_MEDIUM;
|
||||
}
|
||||
else if (plr[pnum].HoldItem._ivalue <= 1000)
|
||||
plr[pnum].HoldItem._iCurs = ICURS_GOLD_SMALL;
|
||||
else
|
||||
plr[pnum].HoldItem._iCurs = ICURS_GOLD_MEDIUM;
|
||||
|
||||
SetCursor_(plr[pnum].HoldItem._iCurs + CURSOR_FIRSTITEM);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue