From 179d2ab764c82d97bbe31c8e38f8442996e2d5ec Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Sat, 12 Aug 2023 18:21:15 +0200 Subject: [PATCH] Cleaned up and translated some comments brap --- src/hardware/hw_cache.c | 3 +-- src/hardware/r_opengl/r_opengl.c | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index 971dd67fd..c27e17a16 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -25,7 +25,7 @@ #include "../z_zone.h" #include "../v_video.h" #include "../r_draw.h" -#include "../r_patch.h" // sneed's feed and seed, formerly chuck's +#include "../r_patch.h" // patch rotation // Values set after a call to HWR_ResizeBlock() static INT32 blocksize, blockwidth, blockheight; @@ -706,7 +706,6 @@ static void HWR_LoadMappedPatch(GLMipmap_t *grmip, GLPatch_t *gpatch) // You can't free rawpatch for some reason? // (Obviously I can't, sprite rotation needs that...) - // Fuckal: I HATE HARDWARE, I HATE HARDWARE!! if (!gpatch->rawpatch) Z_Free(patch); } diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 9c8074f56..04fe8783e 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -1142,8 +1142,8 @@ void Flush(void) while (gr_cachehead) { - // ceci n'est pas du tout necessaire vu que tu les a charger normalement et - // donc il sont dans ta liste ! + // this is not necessary at all, because you have loaded them normally, + // and so they already are in your list! if (gr_cachehead->downloaded) pglDeleteTextures(1, (GLuint *)&gr_cachehead->downloaded); gr_cachehead->downloaded = 0; @@ -1731,11 +1731,11 @@ EXPORT void HWRAPI(SetTexture) (FTextureInfo *pTexInfo) pTexInfo->nextmipmap = NULL; if (gr_cachetail) - { // insertion en fin de liste + { // insertion at the tail gr_cachetail->nextmipmap = pTexInfo; gr_cachetail = pTexInfo; } - else // initialisation de la liste + else // initialization of the linked list gr_cachetail = gr_cachehead = pTexInfo; } }