]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Randon start weapons: Use GivePlayerResource instead of GivePlayerAmmo.
authorLyberta <lyberta@lyberta.net>
Mon, 28 Aug 2017 04:47:49 +0000 (07:47 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 28 Aug 2017 04:47:49 +0000 (07:47 +0300)
qcsrc/common/t_items.qc

index 5f545151b1eb88d201217bef61e64f237221ca5f..c18d704097994fee0f13e924f562c21a02e09f42 100644 (file)
@@ -876,7 +876,7 @@ void GivePlayerRandomWeapons(entity player, int num_weapons,
                                {
                                        break;
                                }
-                               GivePlayerAmmo(player, ammo_shells, shells);
+                               GivePlayerResource(player, RESOURCE_SHELLS, shells);
                                break;
                        }
                        case (ammo_nails):
@@ -885,7 +885,7 @@ void GivePlayerRandomWeapons(entity player, int num_weapons,
                                {
                                        break;
                                }
-                               GivePlayerAmmo(player, ammo_nails, bullets);
+                               GivePlayerResource(player, RESOURCE_BULLETS, bullets);
                                break;
                        }
                        case (ammo_rockets):
@@ -894,7 +894,7 @@ void GivePlayerRandomWeapons(entity player, int num_weapons,
                                {
                                        break;
                                }
-                               GivePlayerAmmo(player, ammo_rockets, rockets);
+                               GivePlayerResource(player, RESOURCE_ROCKETS, rockets);
                                break;
                        }
                        case (ammo_cells):
@@ -903,7 +903,7 @@ void GivePlayerRandomWeapons(entity player, int num_weapons,
                                {
                                        break;
                                }
-                               GivePlayerAmmo(player, ammo_cells, cells);
+                               GivePlayerResource(player, RESOURCE_CELLS, cells);
                                break;
                        }
                        case (ammo_plasma):
@@ -912,7 +912,7 @@ void GivePlayerRandomWeapons(entity player, int num_weapons,
                                {
                                        break;
                                }
-                               GivePlayerAmmo(player, ammo_plasma, plasma);
+                               GivePlayerResource(player, RESOURCE_PLASMA, plasma);
                                break;
                        }
                }