removed unused user field and add reset of flags_vlt in user reset method
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 1 Jul 2013 16:49:50 +0000 (18:49 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 1 Jul 2013 16:49:50 +0000 (18:49 +0200)
web/Obj/user.phh

index 87c93fb..bda7cd6 100644 (file)
@@ -124,9 +124,8 @@ class User {
   var $table_pos;  // idx on the table
   var $table_token;// token that identify a game on a table
 
-  var $flags_volat;// Bitfield of volatile flags
   var $flags;      // Bitfield with: AUTHENTICATE: 0x02 
-  var $flags_vlt;  // Volatile flags valid for this session only
+  var $flags_vlt;  // Bitfield of volatile flags valid for this session only
   var $rec;        // field with user db record or FALSE
   var $the_end;    // Flag to change the end of the session
 
@@ -521,6 +520,7 @@ class User {
     self::unproxy_step($tmp_sess);
     $this->name = "";  // OK here
     while (array_pop($this->comm) != NULL);
+    $this->flags_vlt = 0;
     $this->step = 0;
     $this->chattime = array_fill(0, CHAT_N, 0);
     $this->chat_cur = 0;