floor를 intdiv로 변경

This commit is contained in:
2018-04-08 19:46:26 +09:00
parent f060716a3c
commit ba4ff29e4a
36 changed files with 291 additions and 256 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ namespace sammo;
function GetStuffName($stuff) {
$type1 = $stuff % 10;
$type2 = floor($stuff / 10);
$type2 = intdiv($stuff, 10);
switch($type1) {
case 0: $str = ""; break;
@@ -180,7 +180,7 @@ function processAuction() {
$bidder = MYDB_fetch_array($result);
$sel1 = $auction['stuff'] % 10;
$sel2 = floor($auction['stuff'] / 10);
$sel2 = intdiv($auction['stuff'], 10);
switch($sel1) {
case 1: $type = "weap"; break;
case 2: $type = "book"; break;