X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_netmsg.pas;h=e838a9b7fff87f34eaceee923c3dc387feb14fe1;hp=bc54015ae519443c100ec950b635f3b7412bb7b3;hb=ba177dd9743397cb43dad787fbe7748c8ea51cba;hpb=84a25340ac602b712defba27d7e8a421a211914c 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