mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-22 14:41:36 -05:00
changed time delta to signed int
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include <time.h> // for strftime().
|
||||
#include <assert.h>
|
||||
|
||||
time_t NotifyCategory::_server_delta = 0;
|
||||
long NotifyCategory::_server_delta = 0;
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: NotifyCategory::Constructor
|
||||
@@ -144,7 +144,7 @@ get_child(int i) const {
|
||||
// the client with that of a known server.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void NotifyCategory::
|
||||
set_server_delta(time_t delta) {
|
||||
set_server_delta(long delta) {
|
||||
_server_delta = delta;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ PUBLISHED:
|
||||
int get_num_children() const;
|
||||
NotifyCategory *get_child(int i) const;
|
||||
|
||||
static void set_server_delta(time_t delta);
|
||||
static void set_server_delta(long delta);
|
||||
|
||||
private:
|
||||
string get_config_name() const;
|
||||
@@ -89,7 +89,7 @@ private:
|
||||
typedef pvector<NotifyCategory *> Children;
|
||||
Children _children;
|
||||
|
||||
static time_t _server_delta;
|
||||
static long _server_delta; // not a time_t because server delta may be signed.
|
||||
|
||||
friend class Notify;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user