JANITORIAL: Fix trailing whitespace

This commit is contained in:
Adrian Frühwirth 2018-05-22 16:03:56 +02:00
parent bc949250de
commit cee4d6b853
57 changed files with 133 additions and 133 deletions

View file

@ -173,7 +173,7 @@ public:
byte read(int a);
void writeReg(int r, int v);
bool isStereo() const { return true; }
protected:

View file

@ -238,7 +238,7 @@ void PSP2SdlGraphicsManager::setAspectRatioCorrection(bool enable) {
SDL_Surface *PSP2SdlGraphicsManager::SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) {
SDL_Surface *screen = SurfaceSdlGraphicsManager::SDL_SetVideoMode(width, height, bpp, flags);
if (screen != nullptr) {
vita2d_set_vblank_wait(true);
_vitatex_hwscreen = vita2d_create_empty_texture_format(width, height, SCE_GXM_TEXTURE_FORMAT_R5G6B5);

View file

@ -44,18 +44,18 @@ void OSystem_ANDROIDSDL::initBackend() {
if (!ConfMan.hasKey("gfx_mode"))
ConfMan.set("gfx_mode", "2x");
if (!ConfMan.hasKey("swap_menu_and_back_buttons"))
ConfMan.setBool("swap_menu_and_back_buttons", true);
else
swapMenuAndBackButtons(ConfMan.getBool("swap_menu_and_back_buttons"));
if (!ConfMan.hasKey("touchpad_mouse_mode")) {
const bool enable = SDL_ANDROID_GetMouseEmulationMode();
ConfMan.setBool("touchpad_mouse_mode", enable);
} else
touchpadMode(ConfMan.getBool("touchpad_mouse_mode"));
if (!ConfMan.hasKey("onscreen_control")) {
const bool enable = SDL_ANDROID_GetScreenKeyboardShown();
ConfMan.setBool("onscreen_control", enable);
@ -115,7 +115,7 @@ void OSystem_ANDROIDSDL::setFeatureState(Feature f, bool enable) {
swapMenuAndBackButtons(enable);
break;
}
OSystem_POSIX::setFeatureState(f, enable);
}

View file

@ -123,7 +123,7 @@ public:
static OSystem_iOS7 *sharedInstance();
virtual void initBackend();
virtual void engineInit();
virtual void engineDone();

View file

@ -336,7 +336,7 @@ bool Nub::getEvent(Common::Event &event, PspEvent &pspEvent, SceCtrlData &pad) {
// keep track of remainder for true sub-pixel cursor position
_hiresX %= 1024;
_hiresY %= 1024;
int32 oldX = _cursor->getX();
int32 oldY = _cursor->getY();

View file

@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
scePowerSetBusClockFrequency(222);
scePowerSetGpuClockFrequency(222);
scePowerSetGpuXbarClockFrequency(166);
// Create our OSystem instance
g_system = new OSystem_PSP2();
assert(g_system);
@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
// Free OSystem
delete (OSystem_PSP2 *)g_system;
#ifdef __PSP2_DEBUG__
psp2shell_exit();
#endif

View file

@ -55,11 +55,11 @@ OSystem_PSP2::OSystem_PSP2(Common::String baseConfigName)
}
void OSystem_PSP2::init() {
#if __PSP2_DEBUG__
gDebugLevel = 3;
#endif
// Initialze File System Factory
sceIoMkdir("ux0:data", 0755);
sceIoMkdir("ux0:data/scummvm", 0755);
@ -71,7 +71,7 @@ void OSystem_PSP2::init() {
}
void OSystem_PSP2::initBackend() {
ConfMan.set("joystick_num", 0);
ConfMan.registerDefault("fullscreen", true);
ConfMan.registerDefault("aspect_ratio", false);
@ -105,7 +105,7 @@ void OSystem_PSP2::initBackend() {
ConfMan.setBool("frontpanel_touchpad_mode", false);
}
// Create the savefile manager
if (_savefileManager == 0)
_savefileManager = new DefaultSaveFileManager("ux0:data/scummvm/saves");

View file

@ -29,7 +29,7 @@
#include "base/main.h"
int main(int argc, char *argv[]) {
// Create our OSystem instance
g_system = new OSystem_RISCOS();
assert(g_system);

View file

@ -228,7 +228,7 @@ bool OSystem_Wii::pollKeyboard(Common::Event &event) {
keyboard_event kbdEvent;
s32 res = KEYBOARD_GetEvent(&kbdEvent);
if (!res)
return false;

View file

@ -26,18 +26,18 @@
namespace Common {
DECLARE_SINGLETON(OSDMessageQueue);
OSDMessageQueue::OSDMessageQueue() : _lastUpdate(0) {
}
OSDMessageQueue::~OSDMessageQueue() {
g_system->getEventManager()->getEventDispatcher()->unregisterSource(this);
}
void OSDMessageQueue::registerEventSource() {
g_system->getEventManager()->getEventDispatcher()->registerSource(this, false);
}
void OSDMessageQueue::addMessage(const char *msg) {
_mutex.lock();
_messages.push(msg);

View file

@ -38,9 +38,9 @@ class OSDMessageQueue : public Singleton<OSDMessageQueue>, public EventSource {
public:
OSDMessageQueue();
~OSDMessageQueue();
void registerEventSource();
enum {
kMinimumDelay = 1000 /** < Minimum delay between two OSD messages (in milliseconds) */
};
@ -49,7 +49,7 @@ public:
* Add a message to the OSD message queue.
*/
void addMessage(const char *msg);
/**
* Common::EventSource interface
*

View file

@ -93,7 +93,7 @@ static void emitStatic(FILE *f) {
const int kNumCharacters = 20;
const int kNumActionCursors = 299;
const int kNumAreas = 12;
for (int i = 0; i < kNumFollowers; i++) {
writeLE<char>(f, followerList[i]._id);
writeLE<char>(f, followerList[i]._spriteNum);
@ -105,13 +105,13 @@ static void emitStatic(FILE *f) {
writeLE<int16>(f, followerList[i].ff_C);
writeLE<int16>(f, followerList[i].ff_E);
}
fwrite(kLabyrinthPath, 1, kNumLabyrinthPath, f);
fwrite(kDinoSpeedForCitaLevel, 1, kNumDinoSpeedForCitaLevel, f);
fwrite(kTabletView, 1, kNumTabletView, f);
fwrite(kPersoRoomBankTable, 1, kNumPersoRoomBankTable, f);
fwrite(gotos, 5, kNumGotos, f); // sizeof(Goto)
for (int i = 0; i < kNumObjects; i++) {
writeLE<byte>(f, _objects[i]._id);
writeLE<byte>(f, _objects[i]._flags);
@ -120,11 +120,11 @@ static void emitStatic(FILE *f) {
writeLE<uint16>(f, _objects[i]._powerMask);
writeLE<int16>(f, _objects[i]._count);
}
for (int i = 0; i < kNumObjectLocations; i++) {
writeLE<uint16>(f, kObjectLocations[i]);
}
for (int i = 0; i < kNumPersons; i++) {
writeLE<uint16>(f, kPersons[i]._roomNum);
writeLE<uint16>(f, kPersons[i]._actionId);
@ -140,7 +140,7 @@ static void emitStatic(FILE *f) {
writeLE<byte>(f, kPersons[i]._speed);
writeLE<byte>(f, kPersons[i]._steps);
}
for (int i = 0; i < kNumCitadel; i++) {
writeLE<int16>(f, _citadelList[i]._id);
for (int j = 0; j < 8; j++)
@ -148,16 +148,16 @@ static void emitStatic(FILE *f) {
for (int j = 0; j < 8; j++)
writeLE<int16>(f, _citadelList[i]._video[j]);
}
for (int i = 0; i < kNumCharacterRects; i++) {
writeLE<int16>(f, _characterRects[i].left);
writeLE<int16>(f, _characterRects[i].top);
writeLE<int16>(f, _characterRects[i].right);
writeLE<int16>(f, _characterRects[i].bottom);
}
fwrite(_characterArray, 5, kNumCharacters, f);
for (int i = 0; i < kNumAreas; i++) {
writeLE<byte>(f, kAreasTable[i]._num);
writeLE<byte>(f, kAreasTable[i]._type);
@ -168,15 +168,15 @@ static void emitStatic(FILE *f) {
// pointer to _citadelRoomPtr is always initialized to null
writeLE<int16>(f, kAreasTable[i]._visitCount);
}
for (int i = 0; i < 64; i++) {
writeLE<uint16>(f, tab_2CEF0[i]);
}
for (int i = 0; i < 64; i++) {
writeLE<uint16>(f, tab_2CF70[i]);
}
fwrite(kActionCursors, 1, kNumActionCursors, f);
fwrite(mapMode, 1, 12, f);
fwrite(cubeTextureCoords, 6 * 2 * 3 * 2, 3, f);
@ -193,11 +193,11 @@ static int emitData(char *outputFilename) {
fwrite("CRYODATA", 8, 1, f);
writeLE<uint32>(f, CRYO_DAT_VER);
emitIcons(f);
emitRooms(f);
emitStatic(f);
fclose(f);
printf("Done!\n");

View file

@ -300,7 +300,7 @@ int main(int argc, char *argv[]) {
for (EngineDescList::iterator j = setup.engines.begin(); j != setup.engines.end(); ++j)
j->enable = false;
}
// Disable engines for which we are missing dependencies
for (EngineDescList::const_iterator i = setup.engines.begin(); i != setup.engines.end(); ++i) {
if (i->enable) {

View file

@ -86,7 +86,7 @@ struct EngineDesc {
* Whether the engine should be included in the build or not.
*/
bool enable;
/**
* Features required for this engine.
*/

View file

@ -1152,7 +1152,7 @@ void writeResource(const char *sectionStr, uint32 resId, bool isEnglish = true)
sprintf(nameBuffer, "%s/%u", sectionStr, resId);
if (!isEnglish)
strcat(nameBuffer, "/DE");
writeResource(nameBuffer, sectionStr, resId, isEnglish);
}

View file

@ -57,7 +57,7 @@ private:
* Convert a resource name to it's equivalent hash key
*/
uint16 convertNameToId(const Common::String &resourceName);
/**
* Loads an index from the file
*/

View file

@ -125,7 +125,7 @@ void writeMazeName(CCArchive &cc) {
memset(mazeName, 0, 33);
strcpy(mazeName, "ScummVM");
f.write(mazeName, 33);
cc.add("xeenx255.txt", f);
}
@ -134,7 +134,7 @@ void writeMazeName(CCArchive &cc) {
*/
void writeMazeEvents(CCArchive &cc) {
Common::MemFile f;
// Mirror events
const byte MIRROR_EVENTS[32] = {
6, 7, 0, 2, 0, 40, 1, // Play VOC: "Where to?"
@ -143,7 +143,7 @@ void writeMazeEvents(CCArchive &cc) {
8, 7, 0, 2, 3, 7, 0, 0, 0 // Teleport and exit
};
f.write(MIRROR_EVENTS, 32);
// Bench 1 events
const byte BENCH1_EVENTS[32] = {
10, 7, 8, 0, 0, 5, 1, 2, 3, 1, 2, // NPC

View file

@ -66,7 +66,7 @@ public:
void combatOff();
void tick();
void hitAttempt();
void save(SaveFileWriteStream &f);

View file

@ -66,7 +66,7 @@ int Fog::readCommon(Common::ReadStream *stream) {
void Fog::readAnimationData(Common::ReadStream *stream, int size) {
_animatedParameters = stream->readUint32LE();
int floatCount = size / 4;
_animationData = new float[floatCount];
for (int i = 0; i < floatCount; i++) {

View file

@ -43,7 +43,7 @@ class ItemPickup {
int _timeLeft;
int _timeLast;
Common::Rect _screenRect;
public:
ItemPickup(BladeRunnerEngine *vm);
~ItemPickup();

View file

@ -94,7 +94,7 @@ Common::Error ChewyEngine::run() {
}*/
//_graphics->playVideo(0);
_scene->change(0);
//_sound->playSpeech(1);
//_sound->playSound(1);

View file

@ -113,7 +113,7 @@ bool Console::Cmd_DrawImage(int argc, const char **argv) {
Common::String filename = argv[1];
int resNum = atoi(argv[2]);
_vm->_graphics->drawImage(filename, resNum);
return false;

View file

@ -70,7 +70,7 @@ static const ChewyGameDescription gameDescriptions[] = {
GUIO1(GUIO_NONE)
},
},
{
// Chewy - ESC von F5 - German
// Master version 1.1 (CHEWY.EXE - offset 0x8AB28)
@ -87,7 +87,7 @@ static const ChewyGameDescription gameDescriptions[] = {
GUIO1(GUIO_NONE)
},
},
{
// Chewy - ESC von F5 - German
// Master version 1.0 (CHEWY.EXE - offset 0x8AB10)

View file

@ -138,7 +138,7 @@ void Scene::change(uint scene) {
_curScene = scene;
_vm->_cursor->setCursor(0);
_vm->_cursor->showCursor();
loadSceneInfo();
draw();
}
@ -320,14 +320,14 @@ void Scene::loadSceneInfo() {
_sceneInfo->roomInfo.picNum = indexFile.readByte();
_sceneInfo->roomInfo.autoMoveCount = indexFile.readByte();
_sceneInfo->roomInfo.loadTaf = indexFile.readByte();
_sceneInfo->roomInfo.tafName = "";
for (int i = 0; i < 14; i++)
_sceneInfo->roomInfo.tafName += indexFile.readByte();
_sceneInfo->roomInfo.zoomFactor = indexFile.readByte();
indexFile.readByte(); // padding
for (int i = 0; i < MAX_AUTOMOVE; i++) {
_sceneInfo->autoMove[i].x = indexFile.readSint16LE();
_sceneInfo->autoMove[i].y = indexFile.readSint16LE();

View file

@ -1596,7 +1596,7 @@ int yydebug;
# define YYMAXDEPTH 10000
#endif
#if YYERROR_VERBOSE
@ -1807,7 +1807,7 @@ yysyntax_error (char *yyresult, int yystate, int yychar)
}
}
#endif /* YYERROR_VERBOSE */
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
@ -1839,7 +1839,7 @@ yydestruct (yymsg, yytype, yyvaluep)
break;
}
}
/* Prevent warnings from -Wmissing-prototypes. */
@ -1896,7 +1896,7 @@ yyparse ()
#endif
#endif
{
int yystate;
int yyn;
int yyresult;

View file

@ -168,7 +168,7 @@ extern FILE *yyin, *yyout;
#define EOB_ACT_LAST_MATCH 2
#define YY_LESS_LINENO(n)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
do \
@ -225,7 +225,7 @@ struct yy_buffer_state
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
@ -963,7 +963,7 @@ YY_DECL
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
#line 85 "engines/director/lingo/lingo-lex.l"
@ -1859,7 +1859,7 @@ static int yy_get_next_buffer (void)
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_current_state = (yy_start);
yy_current_state += YY_AT_BOL();
@ -1920,7 +1920,7 @@ static int yy_get_next_buffer (void)
{
int c;
*(yy_c_buf_p) = (yy_hold_char);
if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
@ -1994,7 +1994,7 @@ static int yy_get_next_buffer (void)
*/
void yyrestart (FILE * input_file )
{
if ( ! YY_CURRENT_BUFFER ){
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
@ -2011,7 +2011,7 @@ static int yy_get_next_buffer (void)
*/
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
{
/* TODO. We should be able to replace this entire function body
* with
* yypop_buffer_state();
@ -2057,7 +2057,7 @@ static void yy_load_buffer_state (void)
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
@ -2084,7 +2084,7 @@ static void yy_load_buffer_state (void)
*/
void yy_delete_buffer (YY_BUFFER_STATE b )
{
if ( ! b )
return;
@ -2100,7 +2100,7 @@ static void yy_load_buffer_state (void)
#ifndef __cplusplus
extern int isatty (int );
#endif /* __cplusplus */
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a yyrestart() or at EOF.
@ -2109,7 +2109,7 @@ extern int isatty (int );
{
int oerrno = errno;
yy_flush_buffer(b );
b->yy_input_file = file;
@ -2125,7 +2125,7 @@ extern int isatty (int );
}
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
errno = oerrno;
}
@ -2214,7 +2214,7 @@ void yypop_buffer_state (void)
static void yyensure_buffer_stack (void)
{
yy_size_t num_to_alloc;
if (!(yy_buffer_stack)) {
/* First allocation is just for 2 elements, since we don't know if this
@ -2227,9 +2227,9 @@ static void yyensure_buffer_stack (void)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
(yy_buffer_stack_top) = 0;
return;
@ -2263,7 +2263,7 @@ static void yyensure_buffer_stack (void)
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
{
YY_BUFFER_STATE b;
if ( size < 2 ||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
@ -2299,7 +2299,7 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
*/
YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
{
return yy_scan_bytes(yystr,strlen(yystr) );
}
@ -2315,7 +2315,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
YY_BUFFER_STATE b;
char *buf;
yy_size_t n, i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
buf = (char *) yyalloc(n );
@ -2373,7 +2373,7 @@ static void yy_fatal_error (yyconst char* msg )
*/
int yyget_lineno (void)
{
return yylineno;
}
@ -2416,7 +2416,7 @@ char *yyget_text (void)
*/
void yyset_lineno (int line_number )
{
yylineno = line_number;
}
@ -2477,7 +2477,7 @@ static int yy_init_globals (void)
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
int yylex_destroy (void)
{
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
yy_delete_buffer(YY_CURRENT_BUFFER );

View file

@ -176,7 +176,7 @@ void DirectorEngine::loadEXEv4(Common::SeekableReadStream *stream) {
void DirectorEngine::loadEXEv5(Common::SeekableReadStream *stream) {
uint32 ver = stream->readUint32LE();
if (ver != MKTAG('P', 'J', '9', '5'))
error("Invalid projector tag found in v5 EXE [%s]", tag2str(ver));

View file

@ -369,7 +369,7 @@ int JSpit::jspitElevatorLoop() {
return 1;
}
}
return 0;
}

View file

@ -111,7 +111,7 @@ private:
};
Common::Queue<Action> _actions;
void loadImage(const Common::String &dirname, const Common::String &filename);
void drawScreen();

View file

@ -86,11 +86,11 @@ public:
virtual const char *getName() const {
return "Sludge Engine";
}
virtual const char *getOriginalCopyright() const {
return "Copyright (C) 2000-2014 Hungry Software and contributors";
}
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
const Sludge::SludgeGameDescription *gd = (const Sludge::SludgeGameDescription *)desc;
if (gd) {

View file

@ -601,7 +601,7 @@ TestExitStatus GFXtests::filteringMode() {
return passed;
}
/**
* Tests the aspect ratio correction by: drawing an ellipse, when corrected the ellipse should render to a circle
*/

View file

@ -106,7 +106,7 @@ bool CChickenDispensor::StatusChangeMsg(CStatusChangeMsg *msg) {
bool CChickenDispensor::MovieEndMsg(CMovieEndMsg *msg) {
int movieFrame = msg->_endFrame;
if (movieFrame == 16) {
// Dispensed a chicken
_cursorId = CURSOR_HAND;

View file

@ -77,7 +77,7 @@ CMusicRoomInstrument::CMusicRoomInstrument(CProjectItem *project, CSoundManager
_gameObjects[0] = static_cast<CGameObject *>(_project->findByName("Tubular Bells"));
_insStartTime = 0.4;
break;
case MV_SNAKE:
_gameObjects[0] = static_cast<CGameObject *>(_project->findByName("Snake_Hammer"));
_gameObjects[1] = static_cast<CGameObject *>(_project->findByName("Snake_Glass"));

View file

@ -462,7 +462,7 @@ void CBaseStars::draw4(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClos
+ vector._z * pose._row3._z + pose._vector._z;
if (tempZ <= minVal)
continue;
tempY = vector._x * pose._row1._y + vector._y * pose._row2._y + vector._z * pose._row3._y + pose._vector._y;
tempX = vector._x * pose._row1._x + vector._y * pose._row2._x + vector._z * pose._row3._x + pose._vector._x;
total2 = tempY * tempY + tempX * tempX + tempZ * tempZ;

View file

@ -78,7 +78,7 @@ void CCameraAutoMover::calcSpeeds(int val1, int val2, float distance) {
_field40 = nMoverTransitions-1;
_field48 = nMoverTransitions-1;
_field3C = (double)val2 * _field38;
// Calculate the speeds for a graduated movement between stars
double base = 0.0, total = 0.0, power = 4.0, baseInc = 0.03125;
for (int idx = nMoverTransitions - 1; idx >= 0; --idx) {
@ -86,7 +86,7 @@ void CCameraAutoMover::calcSpeeds(int val1, int val2, float distance) {
total += _speeds[idx];
base += baseInc;
}
for (int idx = 0; idx < nMoverTransitions; ++idx) {
_speeds[idx] = _speeds[idx] * _field3C / total;
}

View file

@ -41,7 +41,7 @@ public:
* Returns true if the rects equal
*/
bool operator==(const FRect &p) const;
/**
* Returns true if the rects are not equal
*/

View file

@ -234,7 +234,7 @@ public:
* Lock in the first matched star marker
*/
bool lockMarker1(FVector v1, FVector v2, FVector v3);
/**
* Lock in the second matched star marker
*/

View file

@ -241,7 +241,7 @@ void CStarControl::doAction(StarControlAction action) {
pet->starsSetReference();
break;
}
case STAR_FADE_IN:
_view.fn3(true);
break;

View file

@ -80,12 +80,12 @@ public:
bool fn1(CStarField *starField, CSurfaceArea *surfaceArea, CStarCamera *camera);
void fn2(CVideoSurface *surface, CStarField *starField, CStarMarkers *markers);
/**
* Increments the index for the number of matches
*/
void incMatches();
/**
* Draw the crosshairs for a given star
*/
@ -101,12 +101,12 @@ public:
* Erase crosshairs for the most recently selected star
*/
void eraseCurrent(CSurfaceArea *surfaceArea);
/**
* Draw crosshairs at the given position
*/
void drawAt(const FPoint &pt, CSurfaceArea *surfaceArea);
/**
* Returns the position of the most recently selected star
*/

View file

@ -78,17 +78,17 @@ public:
void set2(int val);
int get54() const;
void set54(int val);
/**
* Gets the current display mode
*/
StarMode getMode() const;
/**
* Sets the display mode
*/
void setMode(StarMode mode);
/**
* Toggles whether the big box is visible
*/

View file

@ -148,14 +148,14 @@ public:
* Toggles between starfield and photo modes
*/
void toggleMode();
void fn11();
/**
* Toggles whether the viewpoint box is visible in the starfield
*/
void toggleBox();
void fn13();
void fn14();
@ -163,7 +163,7 @@ public:
* Called when the photograph is used on the navigation computer
*/
void setHasReference();
/**
* Handles locking in a star
*/

View file

@ -48,7 +48,7 @@ void CUnmarkedCameraMover::moveTo(const FVector &srcV, const FVector &destV, con
void CUnmarkedCameraMover::transitionBetweenOrientations(const FVector &v1, const FVector &v2, const FVector &v3, const FMatrix &m) {
if (isLocked())
decLockCount();
FVector vector1 = v1;
FVector vector2 = v2;
FPose matrix1 = vector2.getFrameTransform(vector1);

View file

@ -178,7 +178,7 @@ void CViewport::randomizeOrientation() {
FPose m1(X_AXIS, ranRotAngleX);
FPose m2(Y_AXIS, ranRotAngleY);
FPose m3(Z_AXIS, ranRotAngleZ);
FPose s1(m1, m2);
FPose s2(s1, m3);

View file

@ -489,7 +489,7 @@ Graphics::ManagedSurface *AVISurface::duplicateTransparency() const {
bool AVISurface::playCutscene(const Rect &r, uint startFrame, uint endFrame) {
if (g_vm->shouldQuit())
return false;
// TODO: Fixes slight "jumping back" when rotating in place in Top Of Well
// balcony between two elevators. Need a more generalized fix at some point
if (_movieName == "z48.avi")

View file

@ -190,7 +190,7 @@ void TitanicEngine::setRoomNames() {
bool TitanicEngine::canLoadGameStateCurrently() {
CGameManager *gameManager = _window->_gameManager;
CScreenManager *screenMan = CScreenManager::_screenManagerPtr;
if (!gameManager)
// Allow loading from copyright screen and continue dialogs
return true;

View file

@ -54,7 +54,7 @@ public:
* End the speech
*/
void endSpeech(int val);
/**
* Called when a speech is finished, to signal to the associated character
* that the speech is over

View file

@ -225,7 +225,7 @@ TTword *TTvocab::getPrimeWord(TTstring &str, TTword **srcWord) const {
if (srcWord)
// Pass out the pointer to the original word
*srcWord = vocabP;
// Return the new copy of the word
return newWord;
}
@ -267,7 +267,7 @@ TTword *TTvocab::getSuffixedWord(TTstring &str, TTword **srcWord) const {
word = getPrimeWord(tempStr);
}
}
} else if (tempStr.hasSuffix("ing")) {
tempStr.deleteSuffix(3);
word = getPrimeWord(tempStr);
@ -303,11 +303,11 @@ TTword *TTvocab::getSuffixedWord(TTstring &str, TTword **srcWord) const {
}
}
}
} else if (tempStr.hasSuffix("ed")) {
tempStr.deleteSuffix(1);
word = getPrimeWord(tempStr);
if (!word) {
tempStr.deleteSuffix(1);
word = getPrimeWord(tempStr);
@ -333,7 +333,7 @@ TTword *TTvocab::getSuffixedWord(TTstring &str, TTword **srcWord) const {
} else {
tempStr = str;
}
} else if (tempStr.hasSuffix("er")) {
tempStr.deleteSuffix(1);
word = getPrimeWord(tempStr);
@ -395,7 +395,7 @@ TTword *TTvocab::getSuffixedWord(TTstring &str, TTword **srcWord) const {
}
}
}
} else if (tempStr.hasSuffix("est")) {
tempStr.deleteSuffix(2);
word = getPrimeWord(tempStr);

View file

@ -28,7 +28,7 @@ namespace Xeen {
void CreditsScreen::show(XeenEngine *vm) {
CreditsScreen *dlg = new CreditsScreen(vm);
switch (vm->getGameID()) {
case GType_Clouds:
dlg->execute(Res.CLOUDS_CREDITS);
@ -41,7 +41,7 @@ void CreditsScreen::show(XeenEngine *vm) {
dlg->execute(Res.DARK_SIDE_CREDITS);
break;
}
delete dlg;
}

View file

@ -209,7 +209,7 @@ void Interface::mainIconsPrint() {
Windows &windows = *_vm->_windows;
windows[38].close();
windows[12].close();
res._globalSprites.draw(0, 7, Common::Point(232, 74));
drawButtons(&windows[0]);
windows[34].update();

View file

@ -1603,7 +1603,7 @@ uint Party::getScore() {
uint time = _vm->_events->playTime() / GAME_FRAME_RATE;
int minutes = (time % 3600) / 60;
int hours = time / 3600;
score += minutes + (hours * 100);
return score;
}

View file

@ -32,7 +32,7 @@ Resources *g_resources;
Resources::Resources() {
g_resources = this;
g_vm->_files->setGameCc(1);
_globalSprites.load("global.icn");
if (g_vm->getGameID() == GType_Swords)
_logoSprites.load("logo.int");

View file

@ -272,7 +272,7 @@ bool SavesManager::loadGame() {
bool SavesManager::saveGame() {
Map &map = *g_vm->_map;
if (map.mazeData()._mazeFlags & RESTRICTION_SAVE) {
ErrorScroll::show(g_vm, Res.SAVE_OFF_LIMITS, WT_NONFREEZED_WAIT);
return false;

View file

@ -479,7 +479,7 @@ bool Scripts::cmdTeleport(ParamsIterator &params) {
Sound &sound = *_vm->_sound;
windows.closeAll();
bool restartFlag = _event->_opcode == OP_TeleportAndContinue;
int mapId = params.readByte();
Common::Point pt;

View file

@ -278,7 +278,7 @@ private:
* Moves the position of an object
*/
bool cmdMoveObj(ParamsIterator &params);
/**
* Take or give amounts from various character or party figures
*/
@ -319,13 +319,13 @@ private:
* Gives up to three different item/amounts to various character and/or party properties
*/
bool cmdGiveMulti(ParamsIterator &params);
/**
* Prompts the user to enter a word for passwords or mirror
* teleport destinations
*/
bool cmdConfirmWord(ParamsIterator &params);
/**
* Deals damage to a character
*/

View file

@ -65,7 +65,7 @@ public:
* Set which subtitle line to display
*/
void setLine(int line);
/**
* Resets subtitles, stopping any display
*/

View file

@ -384,35 +384,35 @@ void EditGameDialog::open() {
void EditGameDialog::apply() {
ConfMan.set("description", _descriptionWidget->getEditString(), _domain);
Common::Language lang = (Common::Language)_langPopUp->getSelectedTag();
if (lang < 0)
ConfMan.removeKey("language", _domain);
else
ConfMan.set("language", Common::getLanguageCode(lang), _domain);
String gamePath(_gamePathWidget->getLabel());
if (!gamePath.empty())
ConfMan.set("path", gamePath, _domain);
String extraPath(_extraPathWidget->getLabel());
if (!extraPath.empty() && (extraPath != _c("None", "path")))
ConfMan.set("extrapath", extraPath, _domain);
else
ConfMan.removeKey("extrapath", _domain);
String savePath(_savePathWidget->getLabel());
if (!savePath.empty() && (savePath != _("Default")))
ConfMan.set("savepath", savePath, _domain);
else
ConfMan.removeKey("savepath", _domain);
Common::Platform platform = (Common::Platform)_platformPopUp->getSelectedTag();
if (platform < 0)
ConfMan.removeKey("platform", _domain);
else
ConfMan.set("platform", Common::getPlatformCode(platform), _domain);
// Set the state of engine-specific checkboxes
for (uint i = 0; i < _engineOptions.size(); i++) {
ConfMan.setBool(_engineOptions[i].configOption, _engineCheckboxes[i]->getState(), _domain);

View file

@ -81,7 +81,7 @@ protected:
ButtonWidget *_soundFontButton;
StaticTextWidget *_soundFont;
ButtonWidget *_soundFontClearButton;
virtual void build();
virtual void clean();
void rebuild();
@ -115,7 +115,7 @@ protected:
int _pathsTabId;
private:
//
// Control controls
//
@ -143,7 +143,7 @@ private:
CheckboxWidget *_aspectCheckbox;
StaticTextWidget *_renderModePopUpDesc;
PopUpWidget *_renderModePopUp;
//
// Shader controls
//