Skip to content

Commit

Permalink
Disabled separate clause for hero appearance. See sfall-team/sfall#251.
Browse files Browse the repository at this point in the history
Fixes #43.
  • Loading branch information
burner1024 committed Oct 6, 2019
1 parent 9869624 commit 31de288
Showing 1 changed file with 13 additions and 28 deletions.
41 changes: 13 additions & 28 deletions source/gl_g_run_speed.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -48,40 +48,22 @@ procedure start begin
call set_run_fps(path, fps);
end

/* Not working. Maybe it doesn't need to work, and engine sees them as standard hfjmps?
frms := [ // hero appearance
"hfr00s01\\art\\critters\\_hfjmps",
"hfr00s01\\art\\critters\\_hflthr",
"hfr00s01\\art\\critters\\_hfmaxx",
"hfr00s01\\art\\critters\\_hfmetl",
"hfr00s01\\art\\critters\\_hfprim",
"hfr00s02\\art\\critters\\_hfjmps",
"hfr00s02\\art\\critters\\_hflthr",
"hfr00s02\\art\\critters\\_hfmaxx",
"hfr00s02\\art\\critters\\_hfmetl",
"hfr00s02\\art\\critters\\_hfprim",
"hfr00s03\\art\\critters\\_hfjmps",
"hfr00s03\\art\\critters\\_hflthr",
"hfr00s03\\art\\critters\\_hfmaxx",
"hfr00s03\\art\\critters\\_hfmetl",
"hfr00s03\\art\\critters\\_hfprim",
"hmr00s01\\art\\critters\\_hmjmps",
"hmr00s01\\art\\critters\\_hmlthr",
"hmr00s01\\art\\critters\\_hmmaxx",
"hmr00s01\\art\\critters\\_hmmetl",
"hmr00s01\\art\\critters\\_hmwarr",
"hmr00s02\\art\\critters\\_hmjmps",
"hmr00s02\\art\\critters\\_hmlthr",
"hmr00s02\\art\\critters\\_hmmaxx",
"hmr00s02\\art\\critters\\_hmmetl",
"hmr00s02\\art\\critters\\_hmwarr"
"art\\critters\\_hfjmps",
"art\\critters\\_hflthr",
"art\\critters\\_hfmaxx",
"art\\critters\\_hfmetl",
"art\\critters\\_hfprim"
];
foreach frm in frms begin
path := "appearance\\" + frm;
//path := "appearance\\" + frm;
path := frm;
call set_run_fps(path, fps);
end
*/
end


if party then begin
ndebug("party enabled");
frms := [
Expand Down Expand Up @@ -117,7 +99,10 @@ procedure set_run_fps(variable path, variable new_fps) begin
variable path_ab := path + "ab.frm";
variable path_at := path + "at.frm";
file := fs_copy(path_at, path_at);
if file == -1 then file := fs_copy(path_at, path_ab);
if file == -1 then begin
ndebug(path_at + " is missing, copying from " + path_ab);
file := fs_copy(path_at, path_ab);
end
if file == -1 then begin
ndebug("warning: couldn't find or create " + path_at);
return;
Expand Down

0 comments on commit 31de288

Please sign in to comment.