4858e9db752780b0326cf3b339beec0b53442016
Earlier if player held grenade in the hands and other player connected to server and started to spectate him, then this second player always saw assault rifle stats on the HUD as previously selected weapon. It happens, because new client doesn't know, what was previous weapon of players on the server, which didn't switch yet weapon after its connection, so GUN_ASSAULT is set by default. So if first player used for e.g. sniper rifle, then displayed ammo stats were 0/0. Now then are displayed stats of primary weapon.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="refresh" content="0; url=docs/index.html">
<meta name="description" content="Documentation index of the game AssaultCube @ http://assault.cubers.net/">
<meta name="author" content="Rabid Viper Productions">
<meta name="copyright" content="You may be able to redistribute this content under specific conditions.
Please read the licensing information, available @ http://assault.cubers.net/docs/license.html for the
conditions that would apply to what you may be redistributing.">
<title>AssaultCube Documentation</title>
<style type="text/css">
body
{
background-color: #222222;
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>
Languages
C
57.9%
C++
27.6%
Shell
11.1%
Python
1.2%
Makefile
1%
Other
1.1%