diff --git a/polymer/build/src/polymost.c b/polymer/build/src/polymost.c index 3ca91b39c..4bad0f141 100644 --- a/polymer/build/src/polymost.c +++ b/polymer/build/src/polymost.c @@ -591,16 +591,16 @@ void resizeglcheck () glox1 = windowx1; gloy1 = windowy1; glox2 = windowx2; gloy2 = windowy2; - ratioratio = 1.6 / (((float)(windowx2-windowx1+1)) / (windowy2-windowy1)); // computes the ratio between 16/10 and current resolution ratio - fovcorrect = (ratioratio > 1) ? (((windowx2-windowx1+1) * ratioratio) - (windowx2-windowx1+1)) * ((float)glratiocorrection / 63) : 0; + ratioratio = 1.2; //1.6 / (((float)(windowx2-windowx1+1)) / (windowy2-windowy1)); // computes the ratio between 16/10 and current resolution ratio + fovcorrect = (((windowx2-windowx1+1) * ratioratio) - (windowx2-windowx1+1)) * ((float)glratiocorrection / 63); bglViewport(windowx1 - (fovcorrect / 2), yres-(windowy2+1),windowx2-windowx1+1 + fovcorrect, windowy2-windowy1+1); bglMatrixMode(GL_PROJECTION); memset(m,0,sizeof(m)); - m[0][0] = (float)ydimen / ((ratioratio > 1)?1.2:1); m[0][2] = 1.0; + m[0][0] = (float)ydimen / 1.2; m[0][2] = 1.0; m[1][1] = (float)xdimen; m[1][2] = 1.0; - m[2][2] = 1.0; m[2][3] = (float)ydimen / ((ratioratio > 1)?1.2:1); + m[2][2] = 1.0; m[2][3] = (float)ydimen / 1.2; m[3][2] =-1.0; bglLoadMatrixf(&m[0][0]); //bglLoadIdentity(); @@ -3354,9 +3354,9 @@ void polymost_drawrooms () long vx, vy, vz, hitx, hity, hitz; float ratioratio = 1.0; - ratioratio = 1.6 / (((float)(windowx2-windowx1+1)) / (windowy2-windowy1)); // computes the ratio between 16/10 and current resolution ratio + ratioratio = 1.2; //1.6 / (((float)(windowx2-windowx1+1)) / (windowy2-windowy1)); // computes the ratio between 16/10 and current resolution ratio - ox2 = (searchx-ghalfx)/ratioratio; oy2 = (searchy-ghoriz)/((ratioratio > 1)?1.2:1); oz2 = ghalfx; + ox2 = (searchx-ghalfx)/ratioratio; oy2 = (searchy-ghoriz)/ /*((ratioratio > 1)?*/1.2/*:1)*/; oz2 = ghalfx; //Tilt rotation ox = ox2*gctang + oy2*gstang; diff --git a/polymer/eduke32/source/duke3d.h b/polymer/eduke32/source/duke3d.h index f456cb9c6..ee2de4390 100644 --- a/polymer/eduke32/source/duke3d.h +++ b/polymer/eduke32/source/duke3d.h @@ -51,7 +51,7 @@ extern int shareware; #define BYTEVERSION_13 27 #define BYTEVERSION_14 116 #define BYTEVERSION_15 117 -#define BYTEVERSION_JF 162 // increase by 3, because atomic GRP adds 1, and Shareware adds 2 +#define BYTEVERSION_JF 165 // increase by 3, because atomic GRP adds 1, and Shareware adds 2 #define BYTEVERSION (BYTEVERSION_JF+(PLUTOPAK?1:(VOLUMEONE<<1))) // JBF 20040116: different data files give different versions @@ -411,10 +411,10 @@ struct player_struct { char toggle_key_flag,knuckle_incs; // ,select_dir; char walking_snd_toggle, palookup, hard_landing; char /*fire_flag,*/pals[3]; - char return_to_center, reloading, movement_lock[4]; + char return_to_center, reloading; long max_secret_rooms,secret_rooms,max_actors_killed,actors_killed; - long runspeed; + long runspeed, movement_lock; short sbs, sound_pitch; }; diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index aa0e0d037..ae1e62b29 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -685,7 +685,7 @@ LABELS playerlabels[]= { { "sbs", PLAYER_SBS, 0, 0 }, { "reloading", PLAYER_RELOADING, 0, 0 }, { "auto_aim", PLAYER_AUTO_AIM, 0, 0 }, - { "movement_lock", PLAYER_MOVEMENT_LOCK, LABEL_HASPARM2, 4 }, + { "movement_lock", PLAYER_MOVEMENT_LOCK, 0, 0 }, { "sound_pitch", PLAYER_SOUND_PITCH, 0, 0 }, { "weaponswitch", PLAYER_WEAPONSWITCH, 0, 0 }, { "", -1, 0, 0 } // END OF LIST @@ -1362,10 +1362,9 @@ void ResetActorGameVars(short sActor) { int i; - for(i=0;ifrag_ps][0])); Bsprintf(tempbuf,fta_quotes[16300+i+(mulscale(krand(), 3, 16)*10)],name1,name2); - if(ScreenWidth >= 640) + if(ScreenWidth >= 800) adduserquote(tempbuf); else OSD_Printf("%s\n",strip_color_codes(tempbuf)); } @@ -3551,7 +3551,7 @@ void processinput(short snum) else i = 0; Bsprintf(tempbuf,fta_quotes[16350+i],strip_color_codes(&ud.user_name[snum][0])); - if(ScreenWidth >= 640) + if(ScreenWidth >= 800) adduserquote(tempbuf); else OSD_Printf("%s\n",strip_color_codes(tempbuf)); } diff --git a/polymer/eduke32/source/premap.c b/polymer/eduke32/source/premap.c index 2d8f41b0f..8cac9c4b3 100644 --- a/polymer/eduke32/source/premap.c +++ b/polymer/eduke32/source/premap.c @@ -528,10 +528,7 @@ void resetplayerstats(short snum) p->jetpack_on = 0; p->reloading = 0; - p->movement_lock[1] = 0; - p->movement_lock[2] = 0; - p->movement_lock[3] = 0; - p->movement_lock[4] = 0; + p->movement_lock = 0; setpal(p); OnEvent(EVENT_RESETPLAYER, p->i, snum, -1);