Permalink
Browse files

- fixed: SlotPriority must be a float.

It was a fixed before but I missed that when refactoring it into an automatic property.
  • Loading branch information...
coelckers committed Dec 5, 2018
1 parent 0d891b6 commit fd801ca91b43f234ff4d4a8fe60a86d3c540d8df
Showing with 2 additions and 2 deletions.
  1. +2 −2 wadsrc/static/zscript/inventory/weapons.txt
@@ -34,7 +34,7 @@ class Weapon : StateProvider
readonly bool bDehAmmo; // Uses Doom's original amount of ammo for the respective attack functions so that old DEHACKED patches work as intended.
// AmmoUse1 will be set to the first attack's ammo use so that checking for empty weapons still works
meta int SlotNumber;
meta int SlotPriority;
meta double SlotPriority;
property AmmoGive: AmmoGive1;
property AmmoGive1: AmmoGive1;
@@ -121,7 +121,7 @@ class Weapon : StateProvider
{
if (GetReplacement(GetClass()) == GetClass() && !bPowered_Up)
{
return SlotNumber, SlotPriority*65536;
return SlotNumber, int(SlotPriority*65536);
}
return -1, 0;
}

0 comments on commit fd801ca

Please sign in to comment.