Skip to content

Commit

Permalink
CGE2: Move an unused variable in a STUB clock, initialize it (in the …
Browse files Browse the repository at this point in the history
…comment). That fixes a warning
  • Loading branch information
Strangerke committed May 30, 2014
1 parent 7ecb734 commit bea9e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/cge2/snail.cpp
Expand Up @@ -583,15 +583,15 @@ void CGE2Engine::feedSnail(Sprite *spr, Action snq, Hero *hero) {
byte ptr = spr->_actionCtrl[snq]._ptr;
CommandHandler::Command *comtab = spr->snList(snq);
CommandHandler::Command *c = &comtab[ptr];
CommandHandler::Command *p;
CommandHandler::Command *q = &comtab[cnt];

warning("STUB: CGE2Engine::feedSnail()");
// Dont bother with pockets (inventory system) for now... TODO: Implement it later!!!
/*
int pocFre = freePockets(hero->_ref & 1);
int pocReq = 0;
for (p = c; p < q && p->_commandType != kCmdNext; p++) { // scan commands
CommandHandler::Command *p = c;
for (; p < q && p->_commandType != kCmdNext; p++) { // scan commands
// drop from pocket?
if ((p->_commandType == kCmdSend && p->_val != _now)
|| p->_commandType == kCmdGive) {
Expand Down

0 comments on commit bea9e05

Please sign in to comment.