JANITORIAL: Fix various single-character typos
This commit is contained in:
parent
614925d85a
commit
16e2068aec
10 changed files with 10 additions and 10 deletions
|
@ -62,7 +62,7 @@
|
|||
#include <winioctl.h>
|
||||
#if _MSC_VER < 1900
|
||||
// WORKAROUND: Older versions of MSVC might not supply DDK headers by default.
|
||||
// Visual Studio 2015 contains the required headers. We use a compatability
|
||||
// Visual Studio 2015 contains the required headers. We use a compatibility
|
||||
// header from MinGW's w32api for all older versions.
|
||||
// TODO: Limit this to the Visual Studio versions which actually require this.
|
||||
#include "msvc/ntddcdrm.h"
|
||||
|
|
|
@ -56,7 +56,7 @@ POSIXSaveFileManager::POSIXSaveFileManager() {
|
|||
const char *envVar;
|
||||
|
||||
// Previously we placed our default savepath in HOME. If the directory
|
||||
// still exists, we will use it for backwards compatability.
|
||||
// still exists, we will use it for backwards compatibility.
|
||||
envVar = getenv("HOME");
|
||||
if (envVar && *envVar) {
|
||||
savePath = envVar;
|
||||
|
|
|
@ -1722,7 +1722,7 @@ void BladeRunnerEngine::setExtraCNotify(uint8 val) {
|
|||
_extraCNotify = val;
|
||||
}
|
||||
|
||||
// Check if an polled event belongs to a currently disabled keymap and, if so, drop it.
|
||||
// Check if a polled event belongs to a currently disabled keymap and, if so, drop it.
|
||||
bool BladeRunnerEngine::shouldDropRogueCustomEvent(const Common::Event &evt) {
|
||||
if (getEventManager()->getKeymapper() != nullptr) {
|
||||
Common::KeymapArray kmpsArr = getEventManager()->getKeymapper()->getKeymaps();
|
||||
|
|
|
@ -124,7 +124,7 @@ Localizer::Localizer() {
|
|||
continue;
|
||||
}
|
||||
|
||||
// EMI has an garbage line which should be ignored
|
||||
// EMI has a garbage line which should be ignored
|
||||
if (g_grim->getGameType() == GType_MONKEY4 && *line == '\x1A')
|
||||
continue;
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ void Credits() {
|
|||
t = GetMicroTimer() - t;
|
||||
|
||||
// As the DoCredits() function takes a variable time this timing code
|
||||
// forces an constant frame rate for smoother scrolling
|
||||
// forces a constant frame rate for smoother scrolling
|
||||
int32 r = 40000 - t;
|
||||
if (t < 40000) {
|
||||
g_system->delayMillis(r / 1000);
|
||||
|
|
|
@ -652,7 +652,7 @@ uint32 res_man::Check_file_size(const char *url, uint32 url_hash, const char *cl
|
|||
uint8 *res_man::Internal_open(RMParams *params, int32 *ret_len) {
|
||||
// Loads if not in memory here already
|
||||
|
||||
// resoures cannot be locked in memory
|
||||
// resources cannot be locked in memory
|
||||
|
||||
// if space cannot be found then ALL the resources loaded during a previous time-frame will be removed
|
||||
// as graphic resources are to be loaded en-mass when scenes begin the trash process should make a sizeable single block
|
||||
|
|
|
@ -283,7 +283,7 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop, int eventFlag)
|
|||
keys = 0;
|
||||
}
|
||||
|
||||
// When we got an keypress, which we might need to handle,
|
||||
// When we got a keypress, which we might need to handle,
|
||||
// break the event loop and pass it to GUI code.
|
||||
if (keys)
|
||||
breakLoop = true;
|
||||
|
|
|
@ -1588,7 +1588,7 @@ void IMuseInternal::copyGlobalInstrument(byte slot, Instrument *dest) {
|
|||
const byte defaultInstr[30] = { 0 };
|
||||
|
||||
if (_global_instruments[slot].isValid()) {
|
||||
// In case we have an valid instrument set up, copy it to the part.
|
||||
// In case we have a valid instrument set up, copy it to the part.
|
||||
_global_instruments[slot].copy_to(dest);
|
||||
} else if (_soundType == MDT_PCSPK) {
|
||||
debug(0, "Trying to use non-existent global PC Speaker instrument %d", slot);
|
||||
|
|
|
@ -671,7 +671,7 @@ bool ScummEngine::loadState(int slot, bool compat, Common::String &filename) {
|
|||
|
||||
// Since version 52 a thumbnail is saved directly after the header.
|
||||
if (hdr.ver >= VER(52)) {
|
||||
// Prior to version 75 we always required an thumbnail to be present
|
||||
// Prior to version 75 we always required a thumbnail to be present
|
||||
if (hdr.ver <= VER(74)) {
|
||||
if (!Graphics::checkThumbnailHeader(*in)) {
|
||||
warning("Can not load thumbnail");
|
||||
|
|
|
@ -361,7 +361,7 @@ void BMVPlayer::t3PrepBMV(const byte *src, uint32 len, int32 deltaOffset) {
|
|||
|
||||
Length of each operation can be encoded either directly or via special variable length encoding. From a nibble two bottom bits are preprended to final value, then next nibble is processed, if a new nibble is needed next byte is read from the stream. Process ends if any of two upper bits are set, in that case two upper bits are prepended as well.
|
||||
|
||||
Which length is going to be used depends on an quite convoluted encoding and there are two ways how they are encoded (note that operations still keep switching).
|
||||
Which length is going to be used depends on a quite convoluted encoding and there are two ways how they are encoded (note that operations still keep switching).
|
||||
In outer loop, if:
|
||||
- hi nibble has any of 2 upper bits set then only byte is read in this iteration and if:
|
||||
- lo nibble has any of 2 upper bits set then length is between 7-30
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue