mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Merge remote-tracking branch 'yquake2/master'
This commit is contained in:
commit
8d5da27bc3
6 changed files with 49 additions and 8 deletions
4
.github/workflows/linux.yml
vendored
4
.github/workflows/linux.yml
vendored
|
@ -14,8 +14,8 @@ concurrency:
|
||||||
group: ${{github.workflow}}-${{github.event_name == 'pull_request' && github.head_ref || github.sha}}
|
group: ${{github.workflow}}-${{github.event_name == 'pull_request' && github.head_ref || github.sha}}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
build_ubuntu_x64_64:
|
build_ubuntu_x86_64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
1
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
|
@ -32,7 +32,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# Public runners come with 3 CPUs.
|
# Public runners come with 3 CPUs.
|
||||||
gmake -j3
|
gmake -j3
|
||||||
gmake -j3 ref_gles1
|
|
||||||
- name: Create testbuild package
|
- name: Create testbuild package
|
||||||
run: |
|
run: |
|
||||||
# Create release directory tree
|
# Create release directory tree
|
||||||
|
|
9
.github/workflows/win32.yml
vendored
9
.github/workflows/win32.yml
vendored
|
@ -48,7 +48,6 @@ jobs:
|
||||||
sed -i 's|WITH_AVCODEC:=yes|WITH_AVCODEC:=no|g' Makefile
|
sed -i 's|WITH_AVCODEC:=yes|WITH_AVCODEC:=no|g' Makefile
|
||||||
# Public runners come with 2 CPUs.
|
# Public runners come with 2 CPUs.
|
||||||
make -j2
|
make -j2
|
||||||
make -j2 ref_gles1
|
|
||||||
- name: Create testbuild package
|
- name: Create testbuild package
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
|
@ -75,13 +74,13 @@ jobs:
|
||||||
unzip -o SDL2-2.30.6-win32-x86.zip
|
unzip -o SDL2-2.30.6-win32-x86.zip
|
||||||
cp SDL2.dll publish/quake2-win32-${{github.sha}}/
|
cp SDL2.dll publish/quake2-win32-${{github.sha}}/
|
||||||
# openal-soft
|
# openal-soft
|
||||||
wget -c https://www.openal-soft.org/openal-binaries/openal-soft-1.23.1-bin.zip
|
wget -c https://github.com/kcat/openal-soft/releases/download/1.23.1/openal-soft-1.23.1-bin.zip
|
||||||
unzip -o openal-soft-1.23.1-bin.zip
|
unzip -o openal-soft-1.23.1-bin.zip
|
||||||
cp openal-soft-1.23.1-bin/bin/Win32/soft_oal.dll publish/quake2-win32-${{github.sha}}/openal32.dll
|
cp openal-soft-1.23.1-bin/bin/Win32/soft_oal.dll publish/quake2-win32-${{github.sha}}/openal32.dll
|
||||||
# curl (releases use a custom build curl.dll)
|
# curl (releases use a custom build curl.dll)
|
||||||
wget -c https://curl.se/windows/dl-8.9.1_1/curl-8.9.1_1-win32-mingw.zip
|
wget -c -O curl-mingw-latest.zip "https://curl.se/windows/latest.cgi?p=win32-mingw.zip"
|
||||||
unzip -o curl-8.9.1_1-win32-mingw.zip
|
unzip -o curl-mingw-latest.zip
|
||||||
cp curl-8.9.1_1-win32-mingw/bin/libcurl.dll publish/quake2-win32-${{github.sha}}/curl.dll
|
cp curl-*-win32-mingw/bin/libcurl.dll publish/quake2-win32-${{github.sha}}/curl.dll
|
||||||
- name: Upload testbuild package
|
- name: Upload testbuild package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
|
|
@ -44,6 +44,7 @@ static cvar_t *r_vsync;
|
||||||
static cvar_t *gl_anisotropic;
|
static cvar_t *gl_anisotropic;
|
||||||
static cvar_t *gl_msaa_samples;
|
static cvar_t *gl_msaa_samples;
|
||||||
static cvar_t *gl3_colorlight;
|
static cvar_t *gl3_colorlight;
|
||||||
|
static cvar_t *gl4_colorlight;
|
||||||
static cvar_t *r_dynamic;
|
static cvar_t *r_dynamic;
|
||||||
|
|
||||||
static menuframework_s s_opengl_menu;
|
static menuframework_s s_opengl_menu;
|
||||||
|
@ -56,11 +57,14 @@ static menuslider_s s_brightness_slider;
|
||||||
static menuslider_s s_fov_slider;
|
static menuslider_s s_fov_slider;
|
||||||
static menuslider_s s_gl1_intensity_slider;
|
static menuslider_s s_gl1_intensity_slider;
|
||||||
static menuslider_s s_gl3_intensity_slider;
|
static menuslider_s s_gl3_intensity_slider;
|
||||||
|
static menuslider_s s_gl4_intensity_slider;
|
||||||
static menuslider_s s_vk_intensity_slider;
|
static menuslider_s s_vk_intensity_slider;
|
||||||
static menuslider_s s_gl1_overbrightbits_slider;
|
static menuslider_s s_gl1_overbrightbits_slider;
|
||||||
static menuslider_s s_gl3_overbrightbits_slider;
|
static menuslider_s s_gl3_overbrightbits_slider;
|
||||||
|
static menuslider_s s_gl4_overbrightbits_slider;
|
||||||
static menuslider_s s_vk_overbrightbits_slider;
|
static menuslider_s s_vk_overbrightbits_slider;
|
||||||
static menulist_s s_gl3_colorlight_list;
|
static menulist_s s_gl3_colorlight_list;
|
||||||
|
static menulist_s s_gl4_colorlight_list;
|
||||||
static menulist_s s_r_dynamic_list;
|
static menulist_s s_r_dynamic_list;
|
||||||
static menulist_s s_fs_box;
|
static menulist_s s_fs_box;
|
||||||
static menulist_s s_vsync_list;
|
static menulist_s s_vsync_list;
|
||||||
|
@ -591,6 +595,32 @@ VID_MenuInit(void)
|
||||||
s_gl3_colorlight_list.itemnames = yesno_names;
|
s_gl3_colorlight_list.itemnames = yesno_names;
|
||||||
s_gl3_colorlight_list.curvalue = (gl3_colorlight->value != 0);
|
s_gl3_colorlight_list.curvalue = (gl3_colorlight->value != 0);
|
||||||
}
|
}
|
||||||
|
if (strcmp(vid_renderer->string, "gl4") == 0)
|
||||||
|
{
|
||||||
|
s_gl4_intensity_slider.generic.type = MTYPE_SLIDER;
|
||||||
|
s_gl4_intensity_slider.generic.name = "color intensity";
|
||||||
|
s_gl4_intensity_slider.generic.x = 0;
|
||||||
|
s_gl4_intensity_slider.generic.y = (y += 10);
|
||||||
|
s_gl4_intensity_slider.cvar = "gl4_intensity";
|
||||||
|
s_gl4_intensity_slider.minvalue = 0.1f;
|
||||||
|
s_gl4_intensity_slider.maxvalue = 5.0f;
|
||||||
|
|
||||||
|
s_gl4_overbrightbits_slider.generic.type = MTYPE_SLIDER;
|
||||||
|
s_gl4_overbrightbits_slider.generic.name = "overbrights";
|
||||||
|
s_gl4_overbrightbits_slider.generic.x = 0;
|
||||||
|
s_gl4_overbrightbits_slider.generic.y = (y += 10);
|
||||||
|
s_gl4_overbrightbits_slider.cvar = "gl4_overbrightbits";
|
||||||
|
s_gl4_overbrightbits_slider.minvalue = 0.1f;
|
||||||
|
s_gl4_overbrightbits_slider.maxvalue = 5.0f;
|
||||||
|
|
||||||
|
gl4_colorlight = Cvar_Get("gl4_colorlight", "1", CVAR_ARCHIVE);
|
||||||
|
s_gl4_colorlight_list.generic.type = MTYPE_SPINCONTROL;
|
||||||
|
s_gl4_colorlight_list.generic.name = "color light";
|
||||||
|
s_gl4_colorlight_list.generic.x = 0;
|
||||||
|
s_gl4_colorlight_list.generic.y = (y += 10);
|
||||||
|
s_gl4_colorlight_list.itemnames = yesno_names;
|
||||||
|
s_gl4_colorlight_list.curvalue = (gl4_colorlight->value != 0);
|
||||||
|
}
|
||||||
else if (strcmp(vid_renderer->string, "vk") == 0)
|
else if (strcmp(vid_renderer->string, "vk") == 0)
|
||||||
{
|
{
|
||||||
s_vk_intensity_slider.generic.type = MTYPE_SLIDER;
|
s_vk_intensity_slider.generic.type = MTYPE_SLIDER;
|
||||||
|
@ -790,6 +820,12 @@ VID_MenuInit(void)
|
||||||
Menu_AddItem(&s_opengl_menu, (void *)&s_gl3_overbrightbits_slider);
|
Menu_AddItem(&s_opengl_menu, (void *)&s_gl3_overbrightbits_slider);
|
||||||
Menu_AddItem(&s_opengl_menu, (void *)&s_gl3_colorlight_list);
|
Menu_AddItem(&s_opengl_menu, (void *)&s_gl3_colorlight_list);
|
||||||
}
|
}
|
||||||
|
else if (strcmp(vid_renderer->string, "gl4") == 0)
|
||||||
|
{
|
||||||
|
Menu_AddItem(&s_opengl_menu, (void *)&s_gl4_intensity_slider);
|
||||||
|
Menu_AddItem(&s_opengl_menu, (void *)&s_gl4_overbrightbits_slider);
|
||||||
|
Menu_AddItem(&s_opengl_menu, (void *)&s_gl4_colorlight_list);
|
||||||
|
}
|
||||||
else if (strcmp(vid_renderer->string, "vk") == 0)
|
else if (strcmp(vid_renderer->string, "vk") == 0)
|
||||||
{
|
{
|
||||||
Menu_AddItem(&s_opengl_menu, (void *)&s_vk_intensity_slider);
|
Menu_AddItem(&s_opengl_menu, (void *)&s_vk_intensity_slider);
|
||||||
|
|
|
@ -506,6 +506,10 @@ HuntTarget(edict_t *self)
|
||||||
{
|
{
|
||||||
VectorSubtract(self->enemy->s.origin, self->s.origin, vec);
|
VectorSubtract(self->enemy->s.origin, self->s.origin, vec);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
VectorClear(vec);
|
||||||
|
}
|
||||||
|
|
||||||
self->ideal_yaw = vectoyaw(vec);
|
self->ideal_yaw = vectoyaw(vec);
|
||||||
|
|
||||||
|
|
|
@ -650,6 +650,9 @@ SpawnEntities(const char *mapname, char *entities, const char *spawnpoint)
|
||||||
ent->s.renderfx |= RF_IR_VISIBLE;
|
ent->s.renderfx |= RF_IR_VISIBLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* in case the last entity in the entstring has spawntemp fields */
|
||||||
|
memset(&st, 0, sizeof(st));
|
||||||
|
|
||||||
gi.dprintf("%i entities inhibited.\n", inhibit);
|
gi.dprintf("%i entities inhibited.\n", inhibit);
|
||||||
|
|
||||||
G_FindTeams();
|
G_FindTeams();
|
||||||
|
|
Loading…
Reference in a new issue