Skip to content
Snippets Groups Projects
Commit 6ced968d authored by deuce's avatar deuce
Browse files

Replacing the constructor with the constructed object is clearly not the best idea.

parent f58c7c8f
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ load(game_dir+"twenty1.js"); ...@@ -118,7 +118,7 @@ load(game_dir+"twenty1.js");
var roulette=new Roulette(); var roulette=new Roulette();
var slots=new Slots(); var slots=new Slots();
var baccarat=new Baccarat(); var baccarat=new Baccarat();
var Twenty1=new Twenty1(); var twenty1=new Twenty1();
function create_player() function create_player()
{ {
...@@ -516,7 +516,7 @@ function mc_main() ...@@ -516,7 +516,7 @@ function mc_main()
if(check_played(3)) { if(check_played(3)) {
twenty=true; twenty=true;
player.played_twenty1++; player.played_twenty1++;
Twenty1.play(); twenty1.play();
twenty=false; twenty=false;
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment