Commit 2462a83a authored by Bate's avatar Bate

Test galaxy

parent b6ad8cd1
......@@ -380,8 +380,8 @@ class galaxy
WHERE a.id_star = b.id_a");
new requete($this->dbrw,"UPDATE galaxy_star SET
dx_star = dx_star + (x_star - '$center_x')/(sum_tense_star/ '$sum_tense' * (POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))),
dy_star = dy_star + (y_star - '$center_y')/(sum_tense_star/ '$sum_tense' * (POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2)))");
dx_star = IFNULL(dx_star + (x_star - '$center_x')/(sum_tense_star/ '$sum_tense' * (POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))),0),
dy_star = IFNULL(dy_star + (y_star - '$center_y')/(sum_tense_star/ '$sum_tense' * (POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))),0)");
new requete($this->dbrw,"UPDATE galaxy_star SET
x_star = IFNULL(x_star,RAND()) + dx_star,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment