Track the client timestamp in the actionscript way.
(Time values are ints and start at 0 when the flash player starts up, there is a different way to read the epoch millis, returned as a double) git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4482 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
|
||||
package com.threerings.crowd.chat.data {
|
||||
|
||||
import flash.utils.getTimer; // function import
|
||||
|
||||
import com.threerings.util.ClassUtil;
|
||||
import com.threerings.util.Long;
|
||||
|
||||
@@ -45,7 +47,7 @@ public /*abstract*/ class ChatMessage
|
||||
public var localtype :String;
|
||||
|
||||
/** The client time that this message was created. */
|
||||
public var timestamp :Long;
|
||||
public var timestamp :int;
|
||||
|
||||
public function ChatMessage (msg :String = null, bundle :String = null)
|
||||
{
|
||||
@@ -62,7 +64,7 @@ public /*abstract*/ class ChatMessage
|
||||
message = msg;
|
||||
this.localtype = localtype;
|
||||
bundle = null;
|
||||
//timestamp = System.currentTimeMillis();
|
||||
timestamp = getTimer();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user