ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/plugins/common/plugin_common.C
(Generate patch)

Comparing deliantra/server/plugins/common/plugin_common.C (file contents):
Revision 1.3 by root, Sat Sep 16 22:24:12 2006 UTC vs.
Revision 1.5 by pippijn, Mon Dec 11 19:46:46 2006 UTC

61static f_plug_api cfapiObject_merge = NULL; 61static f_plug_api cfapiObject_merge = NULL;
62static f_plug_api cfapiObject_distance = NULL; 62static f_plug_api cfapiObject_distance = NULL;
63static f_plug_api cfapiObject_update = NULL; 63static f_plug_api cfapiObject_update = NULL;
64static f_plug_api cfapiObject_clear = NULL; 64static f_plug_api cfapiObject_clear = NULL;
65static f_plug_api cfapiObject_reset = NULL; 65static f_plug_api cfapiObject_reset = NULL;
66static f_plug_api cfapiCheck_inventory = NULL; 66/* static f_plug_api cfapiCheck_inventory = NULL; */
67static f_plug_api cfapiObject_activate_rune = NULL; 67static f_plug_api cfapiObject_activate_rune = NULL;
68static f_plug_api cfapiObject_check_trigger = NULL; 68static f_plug_api cfapiObject_check_trigger = NULL;
69static f_plug_api cfapiObject_query_money = NULL; 69static f_plug_api cfapiObject_query_money = NULL;
70static f_plug_api cfapiObject_query_cost = NULL; 70static f_plug_api cfapiObject_query_cost = NULL;
71static f_plug_api cfapiObject_cast = NULL; 71static f_plug_api cfapiObject_cast = NULL;
826const char* cf_region_get_message(region* reg) 826const char* cf_region_get_message(region* reg)
827{ 827{
828 int val; 828 int val;
829 return (const char*) cfapiRegion_get_property(&val, reg, CFAPI_REGION_PROP_MESSAGE); 829 return (const char*) cfapiRegion_get_property(&val, reg, CFAPI_REGION_PROP_MESSAGE);
830} 830}
831
832#ifdef WIN32
833int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info)
834{
835 /* Get the time, if they want it */
836 if (time_Info != NULL) {
837 time_Info->tv_sec = time(NULL);
838 time_Info->tv_usec = timeGetTime()*1000;
839 }
840 /* Get the timezone, if they want it */
841 if (timezone_Info != NULL) {
842 _tzset();
843 timezone_Info->tz_minuteswest = _timezone;
844 timezone_Info->tz_dsttime = _daylight;
845 }
846 /* And return */
847 return 0;
848}
849#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines