diff --git a/dlls/fakemeta/Makefile b/dlls/fakemeta/Makefile index 9bd8b4c8..c533e0e3 100755 --- a/dlls/fakemeta/Makefile +++ b/dlls/fakemeta/Makefile @@ -12,7 +12,7 @@ CPP = gcc NAME = fakemeta_amxx OBJECTS = sdk/amxxmodule.cpp dllfunc.cpp engfunc.cpp fakemeta_amxx.cpp pdata.cpp forward.cpp \ - fm_tr.cpp pev.cpp glb.cpp + fm_tr.cpp pev.cpp glb.cpp fm_tr2.cpp LINK = diff --git a/dlls/fakemeta/glb.cpp b/dlls/fakemeta/glb.cpp index 9e3dc32c..f5fa9044 100644 --- a/dlls/fakemeta/glb.cpp +++ b/dlls/fakemeta/glb.cpp @@ -12,7 +12,7 @@ void initialize_glb_offsets() DO_OFFSET_GLB(cdAudioTrack); DO_OFFSET_GLB(maxClients); DO_OFFSET_GLB(maxEntities); - DO_OFFSET_GLB(time); + g_glob_offset_table[gl_time] = offsetof(globalvars_t, time); DO_OFFSET_GLB(frametime); DO_OFFSET_GLB(force_retouch); DO_OFFSET_GLB(deathmatch); @@ -163,4 +163,4 @@ AMX_NATIVE_INFO glb_natives[] = { {"global_get", amx_glb}, {NULL, NULL}, -}; \ No newline at end of file +}; diff --git a/dlls/fakemeta/glb.h b/dlls/fakemeta/glb.h index 7764fe0d..7725573d 100644 --- a/dlls/fakemeta/glb.h +++ b/dlls/fakemeta/glb.h @@ -12,7 +12,7 @@ enum glb_pointers maxEntities, glb_end_int, glb_start_float, - time, + gl_time, frametime, force_retouch, deathmatch, @@ -49,4 +49,5 @@ enum glb_pointers void initialize_glb_offsets(); -#endif /* _INCLUDE_GLB_H */ \ No newline at end of file +#endif /* _INCLUDE_GLB_H */ +