Updates
- Cycle through all available weapons - Ensure phone orientation is fixed landscape
|
@ -7,8 +7,8 @@ android {
|
|||
applicationId "com.drbeef.dvr"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 19
|
||||
versionCode 3
|
||||
versionName '1.0.2'
|
||||
versionCode 6
|
||||
versionName '1.0.5'
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
|
|
@ -155,16 +155,21 @@ int weapon_preferences[2][NUMWEAPONS+1] = {
|
|||
|
||||
int P_SwitchWeapon(player_t *player)
|
||||
{
|
||||
int *prefer = weapon_preferences[demo_compatibility!=0]; // killough 3/22/98
|
||||
int prefer = player->readyweapon;//weapon_preferences[demo_compatibility!=0]; // killough 3/22/98
|
||||
int currentweapon = player->readyweapon;
|
||||
int newweapon = currentweapon;
|
||||
int i = NUMWEAPONS+1; // killough 5/2/98
|
||||
|
||||
// killough 2/8/98: follow preferences and fix BFG/SSG bugs
|
||||
|
||||
do
|
||||
switch (*prefer++)
|
||||
//SB: Change to cycle through all (available) weapons
|
||||
do {
|
||||
if (++prefer == NUMWEAPONS+1)
|
||||
{
|
||||
prefer = 0;
|
||||
}
|
||||
|
||||
switch (prefer) {
|
||||
case 1:
|
||||
if (!player->powers[pw_strength]) // allow chainsaw override
|
||||
break;
|
||||
|
@ -207,6 +212,7 @@ int P_SwitchWeapon(player_t *player)
|
|||
newweapon = wp_supershotgun;
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (newweapon==currentweapon && --i); // killough 5/2/98
|
||||
return newweapon;
|
||||
}
|
||||
|
|
|
@ -161,7 +161,6 @@ public class MainActivity
|
|||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
|
||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setContentView(R.layout.activity_main);
|
||||
|
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 30 KiB |