-/* $Id$
-
-This file is part of libmspgbase
-Copyright © 2008, 2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <map>
#ifdef WIN32
#include <windows.h>
unsigned mod_from_sys(unsigned mod)
{
- unsigned result;
+ unsigned result = 0;
for(unsigned i=0; i<N_MODS_; ++i)
if(mod&modmap[i])
result|=1<<i;