Rev 298 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 298 | Rev 333 | ||
---|---|---|---|
Line 251... | Line 251... | ||
251 | 251 | ||
252 | cmd->consistancy = |
252 | cmd->consistancy = |
Line 253... | Line 253... | ||
253 | consistancy[consoleplayer][maketic%BACKUPTICS]; |
253 | consistancy[consoleplayer][maketic%BACKUPTICS]; |
254 | 254 | ||
255 | 255 | ||
Line 256... | Line 256... | ||
256 | strafe = gamekeydown[key_strafe] || mousebuttons[mousebstrafe] |
256 | strafe = gamekeydown[key_strafe]; // || mousebuttons[mousebstrafe] |
Line 257... | Line 257... | ||
257 | || joybuttons[joybstrafe]; |
257 | // || joybuttons[joybstrafe]; |
258 | speed = gamekeydown[key_speed] || joybuttons[joybspeed]; |
258 | speed = gamekeydown[key_speed]; // || joybuttons[joybspeed]; |
Line 310... | Line 310... | ||
310 | // fprintf(stderr, "up\n"); |
310 | // fprintf(stderr, "up\n"); |
311 | forward += forwardmove[speed]; |
311 | forward += forwardmove[speed]; |
312 | } |
312 | } |
313 | if (gamekeydown[key_down]) |
313 | if (gamekeydown[key_down]) |
314 | { |
314 | { |
315 | // fprintf(stderr, "down\n"); |
- | |
316 | forward -= forwardmove[speed]; |
315 | forward -= forwardmove[speed]; |
- | 316 | // printf("forward= %d\n\r", forward); |
|
317 | } |
317 | } |
318 | if (joyymove < 0) |
318 | // if (joyymove < 0) |
319 | forward += forwardmove[speed]; |
319 | // forward += forwardmove[speed]; |
320 | if (joyymove > 0) |
320 | // if (joyymove > 0) |
321 | forward -= forwardmove[speed]; |
321 | // forward -= forwardmove[speed]; |
322 | if (gamekeydown[key_straferight]) |
322 | if (gamekeydown[key_straferight]) |
323 | side += sidemove[speed]; |
323 | side += sidemove[speed]; |
324 | if (gamekeydown[key_strafeleft]) |
324 | if (gamekeydown[key_strafeleft]) |
325 | side -= sidemove[speed]; |
325 | side -= sidemove[speed]; |
Line 400... | Line 400... | ||
400 | dclicks2 = 0; |
400 | dclicks2 = 0; |
401 | dclickstate2 = 0; |
401 | dclickstate2 = 0; |
402 | } |
402 | } |
403 | } |
403 | } |
Line 404... | Line 404... | ||
404 | 404 | ||
405 | forward += mousey; |
405 | // forward += mousey; |
406 | if (strafe) |
406 | if (strafe) |
407 | side += mousex*2; |
407 | side += mousex*2; |
408 | else |
408 | else |
Line 703... | Line 703... | ||
703 | { |
703 | { |
704 | switch (players[i].cmd.buttons & BT_SPECIALMASK) |
704 | switch (players[i].cmd.buttons & BT_SPECIALMASK) |
705 | { |
705 | { |
706 | case BTS_PAUSE: |
706 | case BTS_PAUSE: |
707 | paused ^= 1; |
707 | paused ^= 1; |
708 | if (paused) |
708 | // if (paused) |
709 | S_PauseSound (); |
709 | // S_PauseSound (); |
710 | else |
710 | // else |
711 | S_ResumeSound (); |
711 | // S_ResumeSound (); |
712 | break; |
712 | break; |
Line 713... | Line 713... | ||
713 | 713 | ||
714 | case BTS_SAVEGAME: |
714 | case BTS_SAVEGAME: |
715 | if (!savedescription[0]) |
715 | if (!savedescription[0]) |
Line 880... | Line 880... | ||
880 | 880 | ||
881 | mo = P_SpawnMobj (x+20*finecosine[an], y+20*finesine[an] |
881 | mo = P_SpawnMobj (x+20*finecosine[an], y+20*finesine[an] |
882 | , ss->sector->floorheight |
882 | , ss->sector->floorheight |
Line 883... | Line 883... | ||
883 | , MT_TFOG); |
883 | , MT_TFOG); |
884 | 884 | ||
Line 885... | Line 885... | ||
885 | if (players[consoleplayer].viewz != 1) |
885 | // if (players[consoleplayer].viewz != 1) |
886 | S_StartSound (mo, sfx_telept); // don't start sound on first frame |
886 | // S_StartSound (mo, sfx_telept); // don't start sound on first frame |
Line 1367... | Line 1367... | ||
1367 | int i; |
1367 | int i; |
Line 1368... | Line 1368... | ||
1368 | 1368 | ||
1369 | if (paused) |
1369 | if (paused) |
1370 | { |
1370 | { |
1371 | paused = false; |
1371 | paused = false; |
1372 | S_ResumeSound (); |
1372 | // S_ResumeSound (); |
Line 1373... | Line 1373... | ||
1373 | } |
1373 | } |
1374 | 1374 |