stanley-king 6 rokov pred
rodič
commit
cb202b91f9

+ 2 - 3
helper/room/shake_room.php

@@ -31,9 +31,8 @@ class shake_room extends base_room
         $amount = intval($input['amount'] * 100 + 0.5);
         if($amount === 0) return false;
 
-        $type = proto_type::msg_stype_shakebonus;
-        $content = $amount;
-
+        $type = proto_type::msg_type_shakebonus;
+        $content = $amount / 100;
 
         $msgid = $this->record_message($userinfo['userid'],$type,$content);
         if($msgid > 0) {

+ 0 - 1
mobile/templates/default/game/test_shake.php

@@ -36,7 +36,6 @@
     var room  = <?php echo $output['room']; ?>;
     var user  = <?php echo $output['user']; ?>;
 
-
     var seq = 1;
     var client = null;
 

+ 1 - 1
room_srv.php

@@ -36,6 +36,6 @@ $host = $config['room_srv']['host'];
 $ports = $config['room_srv']['ports'];
 
 foreach ($ports as $port) {
-    event\util::fork_listen($host,$port,'roomwork',0);
+    event\util::fork_listen($host,$port,'roomwork',1);
 }