From 7601f12ba4fe1014352d496dc172a25bc36fc59b Mon Sep 17 00:00:00 2001 From: dhewg Date: Sat, 3 Dec 2011 02:46:57 +0100 Subject: [PATCH] Fix warning: left shift count >= width of type --- d3xp/gamesys/SysCmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3xp/gamesys/SysCmds.cpp b/d3xp/gamesys/SysCmds.cpp index 4b3dbed..18fba18 100644 --- a/d3xp/gamesys/SysCmds.cpp +++ b/d3xp/gamesys/SysCmds.cpp @@ -335,7 +335,7 @@ void Cmd_Give_f( const idCmdArgs &args ) { } if ( give_all || idStr::Icmp( name, "weapons" ) == 0 ) { - player->inventory.weapons = BIT( MAX_WEAPONS ) - 1; + player->inventory.weapons = 0xffffffff >> ( 32 - MAX_WEAPONS ); player->CacheWeapons(); if ( !give_all ) {