mapsound fadeout fix, winservice init fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3630 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-11-18 21:56:50 +00:00
parent a577fa245f
commit c2bed99f8a
2 changed files with 18 additions and 4 deletions
+6 -1
View File
@@ -19,7 +19,12 @@ struct winservice : servercontroller
HANDLE stopevent;
const char *name;
winservice(const char *name) : name(name) { callbacks::svc = this; };
winservice(const char *name) : name(name)
{
callbacks::svc = this;
statushandle = 0;
};
~winservice()
{
if(status.dwCurrentState != SERVICE_STOPPED) stop();