www.pudn.com > gamedata.rar > gm.c
#include "stdafx.h"
extern struct OBJECT_INFO object_info[MAX_NUM_OBJ];
extern struct optiondata option;
//void CALLBACK gmTimerProc(HWND hWnd, UINT uMsg, UINT idEvent, DWORD dwTime);
void gmSetTimer(UINT nElapse)
{
option.gm_TimerID = SetTimer(NULL, 0, nElapse, gmTimerProc);
}
void gmKillTimer()
{
KillTimer(NULL, option.gm_TimerID);
}
void CALLBACK gmTimerProc(HWND hWnd, UINT uMsg, UINT idEvent, DWORD dwTime)
{
char tmp[64];
int i, a1, a2, a3;
a1 = a2 = a3 = 0;
for (i=0;i