Skip to content

Commit

Permalink
Fix build from previous conda support changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Suarez committed Feb 5, 2025
1 parent bda11c6 commit 542236e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pufferlib/ocean/moba/moba.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ void demo() {

GameRenderer* renderer = init_game_renderer(32, 41, 23);

reset(&env);
c_reset(&env);
int frame = 0;
while (!WindowShouldClose()) {
if (frame % 12 == 0) {
step(&env);
c_step(&env);
forward(net, env.observations, env.actions);
}
render_game(renderer, &env, frame);
Expand Down Expand Up @@ -157,7 +157,7 @@ void test_performance(float test_time) {
};
allocate_moba(&env);

reset(&env);
c_reset(&env);
int start = time(NULL);
int i = 0;
while (time(NULL) - start < test_time) {
Expand All @@ -169,7 +169,7 @@ void test_performance(float test_time) {
env.actions[6*j + 4] = rand()%2;
env.actions[6*j + 5] = rand()%2;
}
step(&env);
c_step(&env);
i++;
}
int end = time(NULL);
Expand All @@ -192,11 +192,11 @@ void test_bugs(float test_time) {
};
allocate_moba(&env);

reset(&env);
c_reset(&env);
int start = time(NULL);
int i = 0;
while (time(NULL) - start < test_time) {
step(&env);
c_step(&env);
forward(net, env.observations, env.actions);
i++;
}
Expand Down

0 comments on commit 542236e

Please sign in to comment.