X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_netmsg.pas;h=e838a9b7fff87f34eaceee923c3dc387feb14fe1;hb=ba177dd9743397cb43dad787fbe7748c8ea51cba;hp=bc54015ae519443c100ec950b635f3b7412bb7b3;hpb=2a94357f8d72648a4f1280543554c557beadb81a;p=d2df-sdl.git diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas index bc54015..e838a9b 100644 --- a/src/game/g_netmsg.pas +++ b/src/game/g_netmsg.pas @@ -1074,7 +1074,7 @@ begin e_Buffer_Write(@NetOut, Lives); e_Buffer_Write(@NetOut, Team); - for I := WEAPON_KASTET to WEAPON_SUPERPULEMET do + for I := WP_FIRST to WP_LAST do e_Buffer_Write(@NetOut, Byte(FWeapon[I])); for I := A_BULLETS to A_CELLS do @@ -2127,7 +2127,7 @@ begin Lives := e_Raw_Read_Byte(P); NewTeam := e_Raw_Read_Byte(P); - for I := WEAPON_KASTET to WEAPON_SUPERPULEMET do + for I := WP_FIRST to WP_LAST do FWeapon[I] := (e_Raw_Read_Byte(P) <> 0); for I := A_BULLETS to A_CELLS do